diff options
Diffstat (limited to 'app')
-rwxr-xr-x | app/discover/events/listeners/default_listener.py | 1 | ||||
-rw-r--r-- | app/utils/logging/full_logger.py | 10 |
2 files changed, 3 insertions, 8 deletions
diff --git a/app/discover/events/listeners/default_listener.py b/app/discover/events/listeners/default_listener.py index 9261cf8..8ebc6cb 100755 --- a/app/discover/events/listeners/default_listener.py +++ b/app/discover/events/listeners/default_listener.py @@ -74,7 +74,6 @@ class DefaultListener(ListenerBase, ConsumerMixin): if self.inv.is_feature_supported(self.env_name, EnvironmentFeatures.MONITORING): self.inv.monitoring_setup_manager = \ MonitoringSetupManager(self.env_name) - self.inv.monitoring_setup_manager.server_setup() def get_consumers(self, consumer, channel): return [consumer(queues=self.event_queues, diff --git a/app/utils/logging/full_logger.py b/app/utils/logging/full_logger.py index a88f00e..411eceb 100644 --- a/app/utils/logging/full_logger.py +++ b/app/utils/logging/full_logger.py @@ -35,13 +35,9 @@ class FullLogger(Logger): def set_env(self, env): super().set_env(env) - defined_handler = next( - filter( - lambda handler: handler.__class__ == MongoLoggingHandler.__class__, - self.log.handlers - ), None) - + defined_handler = [h for h in self.log.handlers + if isinstance(h, MongoLoggingHandler)] if defined_handler: - defined_handler.env = env + defined_handler[0].env = env else: self.add_handler(MongoLoggingHandler(env, self.level)) |