Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions watcher/watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down