Skip to content

Commit 1b443ce

Browse files
committed
log levels: default INFO, remove ALL
parallel to certtools/intelmq-manager#309
1 parent 324526a commit 1b443ce

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

CHANGELOG.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ CHANGELOG
1111
## Monitor
1212
^^^^^^^^^^
1313

14-
- Bot logs: fix log level filter "ALL" (PR#49 by Sebastian Wagner, fixes #48).
14+
- Bot logs: Remove log level filter "ALL", use INFO as default (PR#51, PR#49 by Sebastian Wagner, fixes #48).
1515

1616
Tests
1717
^^^^^
@@ -22,7 +22,7 @@ Tests
2222
3.3.0 (2024-03-01)
2323
----------------------
2424

25-
- Bump version number to be in sync with the main intelmq version
25+
- Bump version number to be in sync with the main intelmq version
2626
- minor fixes to re-enable all the github workflows and disable the workflows which did not run anymore.
2727

2828
3.2.0 (2023-07-19)

intelmq_api/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def bot(action: Actions, id: str = Depends(ID), runner: runctl.RunIntelMQCtl = D
7979

8080

8181
@api.get("/api/getlog", dependencies=[authorized, cached])
82-
def get_log(lines: int, id: str = Depends(ID), level: Levels = "DEBUG",
82+
def get_log(lines: int, id: str = Depends(ID), level: Levels = "INFO",
8383
runner: runctl.RunIntelMQCtl = Depends(runner)):
8484
return JSONFileResponse(runner.log(id, lines, level))
8585

intelmq_api/runctl.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,6 @@ def bot(self, action: str, bot_id: str) -> JSONFile:
112112
return self._run_json([action, bot_id])
113113

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

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

0 commit comments

Comments
 (0)