Check that createLogHandler() isn't called more than once.

This would result in multiple log files encrypted with the same key.
This commit is contained in:
akwizgran
2018-10-23 15:16:29 +01:00
parent dfb581ef12
commit 7ce91066f5
2 changed files with 5 additions and 0 deletions

View File

@@ -24,6 +24,8 @@ public interface PersistentLogManager {
/**
* Creates and returns a persistent log handler that stores its logs in
* the given directory.
* <p>
* This method should only be called once.
*/
Handler createLogHandler(File dir) throws IOException;