mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-28 05:05:21 +01:00
Close plugin log handlers on disable
This commit is contained in:
parent
81d83bdd8a
commit
2b304ecebc
@ -355,6 +355,10 @@ public class BungeeCord extends ProxyServer
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
plugin.onDisable();
|
plugin.onDisable();
|
||||||
|
for ( Handler handler : plugin.getLogger().getHandlers() )
|
||||||
|
{
|
||||||
|
handler.close();
|
||||||
|
}
|
||||||
} catch ( Throwable t )
|
} catch ( Throwable t )
|
||||||
{
|
{
|
||||||
getLogger().severe( "Exception disabling plugin " + plugin.getDescription().getName() );
|
getLogger().severe( "Exception disabling plugin " + plugin.getDescription().getName() );
|
||||||
|
Loading…
Reference in New Issue
Block a user