Skip to content

Commit 79ab1ed

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 77533cb commit 79ab1ed

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
@@ -8,11 +8,17 @@ CHANGELOG
88
3.3.1 (unreleased)
99
----------------------
1010

11+
## Monitor
12+
^^^^^^^^^^
13+
14+
- Bot logs: fix log level filter "ALL" (PR#49 by Sebastian Wagner, fixes #48).
15+
1116
Tests
1217
^^^^^
1318

1419
- Update Python versions: remove 3.7, add 3.12, 3.13 (PR#50 by Sebastian Wagner).
1520

21+
1622
3.3.0 (2024-03-01)
1723
----------------------
1824

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)