mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 11:49:04 +01:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user