Make shutdown InterruptedExceptions not noisy

This commit is contained in:
Mike Primm 2022-02-16 00:50:53 -06:00
parent 04147aadb1
commit 15b1328c0e
1 changed files with 8 additions and 4 deletions

View File

@ -228,8 +228,10 @@ public class MapManager {
try {
r.run();
} catch (Exception x) {
Log.severe("Exception during render job: " + r);
x.printStackTrace();
if (!(x instanceof InterruptedException)) { // Avoid shutdown noise
Log.severe("Exception during render job: " + r);
x.printStackTrace();
}
}
}
});
@ -244,8 +246,10 @@ public class MapManager {
try {
command.run();
} catch (Exception x) {
Log.severe("Exception during render job: " + command);
x.printStackTrace();
if (!(x instanceof InterruptedException)) { // Avoid shutdown noise
Log.severe("Exception during render job: " + command);
x.printStackTrace();
}
}
}
}, delay, unit);