Skip to content

Commit 80fe3a0

Browse files
committed
monitor, bot logs: fix log level filter ALL
in level filter ALL, only DEBUG messages were shown. instead, show all log levels as intended fixes #48
1 parent bbe958f commit 80fe3a0

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

CHANGELOG.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
..
2-
SPDX-FileCopyrightText: 2020-2023 Birger Schacht, Sebastian Wagner
2+
SPDX-FileCopyrightText: 2020-2023 nic.at GmbH, 2025 Institute for Common Good Technology, Sebastian Wagner
33
SPDX-License-Identifier: AGPL-3.0-or-later
44
55
CHANGELOG
66
=========
77

8+
3.3.1 (unreleased)
9+
------------------
10+
11+
## Monitor
12+
^^^^^^^^^^
13+
14+
- Bot logs: fix log level filter "ALL" (PR#49 by Sebastian Wagner, fixes #48).
15+
816
3.3.0 (2024-03-01)
917
----------------------
1018

intelmq_api/runctl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def bot(self, action: str, bot_id: str) -> JSONFile:
113113

114114
def log(self, bot_id: str, lines: int, level: str) -> JSONFile:
115115
if level == "ALL":
116-
level = "DEBUG"
116+
return self._run_json(["log", bot_id, str(lines)])
117117
return self._run_json(["log", bot_id, str(lines), level])
118118

119119
def list(self, kind: str) -> JSONFile:

0 commit comments

Comments
 (0)