From df8132c86c348db2696e640dbb324af54d875f48 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Mon, 4 Jul 2022 07:14:11 -0400 Subject: [PATCH] Island: Change the order of FileRepository decorators The caching decorator was suppressing debug log messages. Reversing their order resolves the issue. --- monkey/monkey_island/cc/services/initialize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/services/initialize.py b/monkey/monkey_island/cc/services/initialize.py index 7616a191e..b5a16ec9f 100644 --- a/monkey/monkey_island/cc/services/initialize.py +++ b/monkey/monkey_island/cc/services/initialize.py @@ -77,7 +77,7 @@ def _register_repositories(container: DIContainer, data_dir: Path): def _decorate_file_repository(file_repository: IFileRepository) -> IFileRepository: return FileRepositoryLockingDecorator( - FileRepositoryCachingDecorator(FileRepositoryLoggingDecorator(file_repository)) + FileRepositoryLoggingDecorator(FileRepositoryCachingDecorator(file_repository)) )