mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-27 20:58:40 +01:00
Make shutdown InterruptedExceptions not noisy
This commit is contained in:
parent
04147aadb1
commit
15b1328c0e
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user