Skip to content

Commit

Permalink
catch IOException if debug log file cannot be created and print prett…
Browse files Browse the repository at this point in the history
…y message
  • Loading branch information
weaondara committed Nov 3, 2019
1 parent 1da3448 commit f0a0564
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/net/alpenblock/bungeeperms/Debug.java
Expand Up @@ -36,6 +36,10 @@ public Debug(PlatformPlugin p, BPConfig conf, String loggername)
fh.setFormatter(new DebugFormatter());
logger.addHandler(fh);
}
catch (IOException e)
{
System.err.println("Failed to create debug log file " + file + "! Cause: " + e.getMessage());
}
catch (Exception e)
{
e.printStackTrace();
Expand Down

0 comments on commit f0a0564

Please sign in to comment.