From 21b225f23db36413ee3236b66dde64562e2afe45 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Thu, 26 Mar 2020 19:37:26 -0400 Subject: [PATCH] simplify addLoggingToConfig --- irctest/controllers/oragono.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/irctest/controllers/oragono.py b/irctest/controllers/oragono.py index 38b82d4..1827218 100644 --- a/irctest/controllers/oragono.py +++ b/irctest/controllers/oragono.py @@ -205,7 +205,9 @@ class OragonoController(BaseServerController, DirectoryBasedController): def getConfig(self): return copy.deepcopy(self._config) - def addLoggingToConfig(self, config): + def addLoggingToConfig(self, config=None): + if config is None: + config = self.baseConfig() config.update(LOGGING_CONFIG) return config