Skip to content

Commit

Permalink
monitor, bot logs: fix log level filter ALL
Browse files Browse the repository at this point in the history
in level filter ALL, only DEBUG messages were shown. instead, show all
log levels as intended

fixes #48
  • Loading branch information
sebix committed Feb 26, 2025
1 parent bbe958f commit 80fe3a0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
..
SPDX-FileCopyrightText: 2020-2023 Birger Schacht, Sebastian Wagner
SPDX-FileCopyrightText: 2020-2023 nic.at GmbH, 2025 Institute for Common Good Technology, Sebastian Wagner
SPDX-License-Identifier: AGPL-3.0-or-later
CHANGELOG
=========

3.3.1 (unreleased)
------------------

## Monitor
^^^^^^^^^^

- Bot logs: fix log level filter "ALL" (PR#49 by Sebastian Wagner, fixes #48).

3.3.0 (2024-03-01)
----------------------

Expand Down
2 changes: 1 addition & 1 deletion intelmq_api/runctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def bot(self, action: str, bot_id: str) -> JSONFile:

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

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

0 comments on commit 80fe3a0

Please sign in to comment.