Make shutdown InterruptedExceptions not noisy

This commit is contained in:
Mike Primm 2022-02-16 00:50:53 -06:00
parent 04147aadb1
commit 15b1328c0e

View File

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