Don't show logs clean error when another instance is running

This commit is contained in:
crschnick 2024-02-28 14:12:51 +00:00
parent 37dae87a2f
commit f42434c60e

View file

@ -119,7 +119,9 @@ public class AppLogs {
FileUtils.forceDelete(path.toFile());
}
} catch (Exception ex) {
ErrorEvent.fromThrowable(ex).handle();
// It can happen that another instance is running that is locking a log file
// Since we initialized before checking for another instance, this might fail
ErrorEvent.fromThrowable(ex).expected().omit().handle();
}
}