[Fix] logger fix

This commit is contained in:
Robert von Burg 2022-10-07 16:05:51 +02:00
parent df9bc79041
commit a17b89b833
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 4 additions and 1 deletions

View File

@ -91,7 +91,10 @@ public class OperationsLog extends StrolchComponent {
poll.run();
} catch (Exception e) {
logger.error("Failed to perform a log task", e);
if (e instanceof InterruptedException && !this.run)
logger.warn("Interrupted!");
else
logger.error("Failed to perform a task", e);
}
}
}