Bug 46057 - UMC server logs exception at level PROCESS
Summary: UMC server logs exception at level PROCESS
Status: CLOSED FIXED
Alias: None
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
Version: UCS 4.2
Hardware: Other Linux
: P5 normal
Target Milestone: UCS 5.2-1-errata
Assignee: Florian Best
QA Contact: Johannes Lohmer
URL: https://git.knut.univention.de/univen...
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-17 08:23 CET by Daniel Tröder
Modified: 2025-04-02 14:09 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Tröder univentionstaff 2018-01-17 08:23:27 CET
When an exception is raised (in ucs-school-umc-installer/umc/python/schoolinstaller/__init__.py:532) the UMC server logs the message of the exception (to management-console-module-schoolinstaller.log) with level PROCESS.

Searching the logfile for "error" or "fail" does not yield a hit.

Log exceptions with loglevel ERROR.
Comment 1 Florian Best univentionstaff 2018-01-17 10:31:46 CET
All tracebacks which are send to the frontend are logged in /var/log/univention/management-console-web-server.log.
Comment 2 Ingo Steuwer univentionstaff 2020-07-03 20:54:45 CEST
This issue has been filed against UCS 4.2.

UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.
Comment 3 Florian Best univentionstaff 2025-03-28 09:32:18 CET
* Stacktraces are now logged with ERROR facility instead of PROCESS
* Stacktraces are now again correctly formatted (a tuple was logged which made all newlines appear as \n)
* Stacktraces are now logged in both  /var/log/univention/management-console-server.log and /var/log/univention/management-console-module-$MDOULEID.log (and therefore twice in Nubus, as these files are just "stdout" there)

univention-management-console.yaml
866254189f2c | feat(umc): log exception stacktraces more explicitly

univention-management-console (14.0.47)
866254189f2c | feat(umc): log exception stacktraces more explicitly
Comment 4 Johannes Lohmer univentionstaff 2025-03-28 09:39:02 CET
errata-yaml ok
code-review ok
log messages ok
packagebuild ok
problem reproduced ok
fix reproduced ok
Comment 5 Christian Castens univentionstaff 2025-04-02 14:09:56 CEST
<https://errata.software-univention.de/#/?erratum=5.2x60>