diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2021-09-06 17:47:28 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2021-09-06 17:47:28 +0200 |
commit | 7b235a1c36b09cfe2c6b4c97c3b6dad77e51d5ae (patch) | |
tree | 6829e583cd7c59ffd75b9ab77b2679d2b12e19e4 /searx | |
parent | a26e4eff10b8ed41d7012390d4efc575b9da8eb0 (diff) | |
download | searxng-7b235a1c36b09cfe2c6b4c97c3b6dad77e51d5ae.tar.gz searxng-7b235a1c36b09cfe2c6b4c97c3b6dad77e51d5ae.zip |
[mod] one logger per engine
Suggested-by: @dalf in https://github.com/searxng/searxng/issues/98#issuecomment-849013518
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx')
-rw-r--r-- | searx/engines/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/searx/engines/__init__.py b/searx/engines/__init__.py index d7defe0b4..1ac675c4c 100644 --- a/searx/engines/__init__.py +++ b/searx/engines/__init__.py @@ -111,6 +111,7 @@ def load_engine(engine_data): if is_missing_required_attributes(engine): return None + engine.logger = logger.getChild(engine_name) return engine |