Skip to content

monitor, bot logs: fix log level filter ALL #49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
..
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
Expand All @@ -8,11 +8,17 @@ CHANGELOG
3.3.1 (unreleased)
----------------------

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

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

Tests
^^^^^

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


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