Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(plugin): set default log level in python plugin sdk
Browse files Browse the repository at this point in the history
zsoltkacsandi committed Jul 25, 2024
1 parent 36fb727 commit e27ae0c
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/sdk-python/plugin/server/config.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
from urllib.parse import urlparse

ENV_LOG_LEVEL = "PLUGIN_SERVER_LOG_LEVEL"
DEFAULT_LOG_LEVEL = "info"
DEFAULT_LOG_LEVEL = logging.ERROR

ENV_LISTEN_ADDRESS = "PLUGIN_SERVER_LISTEN_ADDRESS"
DEFAULT_LISTEN_ADDRESS = "http://0.0.0.0:8080"
1 change: 1 addition & 0 deletions plugins/sdk-python/plugin/server/server.py
Original file line number Diff line number Diff line change
@@ -20,6 +20,7 @@

# Init logger
_logger = logging.getLogger('plugin.scanner')
_logger.setLevel(_config.get_log_level())
_logger.addHandler(logging.StreamHandler(sys.stdout))


0 comments on commit e27ae0c

Please sign in to comment.