Bug 48121 - timestamps are missing in updater.log
timestamps are missing in updater.log
Status: NEW
Product: UCS
Classification: Unclassified
Component: Update - univention-updater
UCS 4.4
Other Linux
: P5 normal with 3 votes (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-11-08 16:19 CET by Nico Stöckigt
Modified: 2020-07-13 10:46 CEST (History)
4 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.069
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2018103021000031
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nico Stöckigt univentionstaff 2018-11-08 16:19:28 CET
There is a sudden change in the 'updater.log' but we can't track down the circumstances because there is no according timestamp.

In this incident there is no update available but in the UMC a message is telling the opposite.

============================================================
Starting univention-upgrade. Current UCS version is 4.3-2 errata291

Checking for package updates:                           none
Checking for app updates:                               none
Checking for release updates:                           none

Starting univention-upgrade. Current UCS version is 4.3-2 errata291

Checking for package updates:                           none
Checking for app updates:                               none
Checking for release updates:                           none

Starting univention-upgrade. Current UCS version is 4.3-2 errata291

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.3-2 errata291

Checking for package updates:                           found
Please rerun command without --check argument to install.
============================================================


Would be easier if the log tells when...

============================================================
29.10.2018 8:00:02.156 - Starting univention-upgrade. Current UCS version is 4.3-2 errata291

Checking for package updates:                           none
Checking for app updates:                               none
Checking for release updates:                           none

05.11.2018 8:00:03.034 - Starting univention-upgrade. Current UCS version is 4.3-2 errata291

Checking for package updates:                           found
Please rerun command without --check argument to install.
============================================================
Comment 1 Daniel Tröder univentionstaff 2019-03-20 11:30:11 CET
This is still true in 4.4 and very annoying.

The problem is in base/univention-updater/python/univention-upgrade.
In main() a logger is defined (with a timestamp), but it is never used! The function that is actually used to log is:

print >>logfd, msg