diff --git a/watcher/watcher.py b/watcher/watcher.py index 1af82cd..2d78b5c 100644 --- a/watcher/watcher.py +++ b/watcher/watcher.py @@ -46,6 +46,10 @@ def __init__(self, app, config, logger=logging.getLogger(__name__)): self.wsgi_config = config self.watcher_config = {} + loglevel = self.wsgi_config.get('loglevel', None) + if loglevel: + logger.setLevel(level=logging.__getattribute__(loglevel)) + self.cadf_service_name = self.wsgi_config.get('cadf_service_name', None) self.service_type = self.wsgi_config.get('service_type', taxonomy.UNKNOWN) # get the project uid from the request path or from the token (default)