Overly verbose logging to journalctl
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 48/100
Direzione di ricerca
Riproduci la transazione di update-manager e confronta le voci duplicate AptKit e org.aptkit in journalctl. Traccia la configurazione del logging che produce entrambe le voci e analizza la posizione dell’avviso in /usr/lib/python3/dist-packages/aptkit/progress.py:485. Il lavoro è completato quando i messaggi aptkit duplicati vengono rimossi o possono essere controllati senza modificare il logging dei servizi non correlati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
So when I run the update manager, I get this in my journalctl:
Apr 21 13:59:14 Excalibur dbus-daemon[1618]: [system] Activating service name='org.aptkit' requested by ':1.4514' (uid=1000 pid=7195 comm="mintUpdate " label="unconfined") (usi>
Apr 21 13:59:14 Excalibur AptKit[278078]: INFO: Initializing daemon
Apr 21 13:59:14 Excalibur org.aptkit[278078]: 13:59:14 AptKit [INFO]: Initializing daemon
Apr 21 13:59:14 Excalibur dbus-daemon[1618]: [system] Successfully activated service 'org.aptkit'
Apr 21 13:59:14 Excalibur AptKit[278078]: INFO: InstallPackages() was called: dbus.Array([dbus.String('libcap2-bin'), dbus.String('libcap2:i386'), dbus.String('libcap2'), dbus.String('libpam-cap'), dbus.String('ntf>
Apr 21 13:59:14 Excalibur org.aptkit[278078]: 13:59:14 AptKit [INFO]: InstallPackages() was called: dbus.Array([dbus.String('libcap2-bin'), dbus.String('libcap2:i386'), dbus.String('libcap2'), dbus.String('libpam-c>
Apr 21 13:59:14 Excalibur AptKit.Trans[278078]: INFO: Simulate was called
Apr 21 13:59:14 Excalibur org.aptkit[278078]: 13:59:14 AptKit.Trans [INFO]: Simulate was called
Apr 21 13:59:14 Excalibur AptKit.Worker[278078]: INFO: Simulating trans: /org/aptkit/transaction/67229b042b6e48bb80ba8b577b86bd14
Apr 21 13:59:14 Excalibur org.aptkit[278078]: 13:59:14 AptKit.Worker [INFO]: Simulating trans: /org/aptkit/transaction/67229b042b6e48bb80ba8b577b86bd14
Apr 21 13:59:14 Excalibur AptKit.Worker[278078]: WARNING: An additional step to open the cache is required
Apr 21 13:59:14 Excalibur org.aptkit[278078]: 13:59:14 AptKit.Worker [WARNING]: An additional step to open the cache is required
Apr 21 13:59:14 Excalibur AptKit.Worker[278078]: INFO: Committing packages: dbus.Array([dbus.String('libcap2-bin'), dbus.String('libcap2:i386'), dbus.String('libcap2'), dbus.String('libpam-cap'), dbus.String('ntfs->
Apr 21 13:59:14 Excalibur org.aptkit[278078]: 13:59:14 AptKit.Worker [INFO]: Committing packages: dbus.Array([dbus.String('libcap2-bin'), dbus.String('libcap2:i386'), dbus.String('libcap2'), dbus.String('libpam-cap>
Apr 21 13:59:14 Excalibur AptKit.Trans[278078]: INFO: Queuing transaction /org/aptkit/transaction/67229b042b6e48bb80ba8b577b86bd14
Apr 21 13:59:14 Excalibur org.aptkit[278078]: 13:59:14 AptKit.Trans [INFO]: Queuing transaction /org/aptkit/transaction/67229b042b6e48bb80ba8b577b86bd14
Apr 21 13:59:19 Excalibur polkitd[1730]: Operator of unix-session:c2 successfully authenticated as unix-user:qwinn to gain TEMPORARY authorization for action org.aptkit.install-or-remove-packages for system-bus-nam>
Apr 21 13:59:19 Excalibur AptKit.Worker[278078]: INFO: Processing transaction /org/aptkit/transaction/67229b042b6e48bb80ba8b577b86bd14
Apr 21 13:59:19 Excalibur org.aptkit[278078]: 13:59:19 AptKit.Worker [INFO]: Processing transaction /org/aptkit/transaction/67229b042b6e48bb80ba8b577b86bd14
Apr 21 13:59:20 Excalibur systemd[6483]: Started pk-debconf-helper.service - debconf communication service.
Apr 21 13:59:27 Excalibur dbus-daemon[1618]: [system] Activating via systemd: service name='org.freedesktop.PackageKit' unit='packagekit.service' requested by ':1.4520' (uid=0 pid=282881 comm="/usr/bin/gdbus call ->
Apr 21 13:59:27 Excalibur dbus-daemon[1618]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Apr 21 13:59:27 Excalibur org.aptkit[278078]: /usr/lib/python3/dist-packages/aptkit/progress.py:485: Warning: Source ID 34 was not found when attempting to remove it
Apr 21 13:59:27 Excalibur org.aptkit[278078]: GLib.source_remove(id)
Apr 21 13:59:27 Excalibur org.aptkit[278078]: /usr/lib/python3/dist-packages/aptkit/progress.py:485: Warning: Source ID 35 was not found when attempting to remove it
Apr 21 13:59:27 Excalibur org.aptkit[278078]: GLib.source_remove(id)
Apr 21 13:59:27 Excalibur AptKit.Worker[278078]: INFO: Finished transaction /org/aptkit/transaction/67229b042b6e48bb80ba8b577b86bd14
Apr 21 13:59:27 Excalibur org.aptkit[278078]: 13:59:27 AptKit.Worker [INFO]: Finished transaction /org/aptkit/transaction/67229b042b6e48bb80ba8b577b86bd14
Is all this really necessary? For one thing I note that most lines seem to be duplicated, one from org.aptkit and another from either AptKit.Worker or AptKit.Trans. According to AI (which of course could be wrong but if that's the case I'm not sure how I'd go about finding the right answer), the only way to control all this logging to journalctl would be to add a LogLevelMax=error to the org.freedesktop.PolicyKit1 service, which would suppress INFO and WARNING messages for a whole lot of services, not just aptkit. So unless you guys can tone this down somehow or add a configuration option to control it, there's no way a user can control this level of verbosity.
If at least the duplication could be removed, that would help a lot. Preferably removing the ones from org.AptKit as those come up yellow in journalctl even when they are INFO level, the AptKit.Worker/Trans obey normal coloring conventions. Thanks for any help.
- Lingua principale
- Python
- Stelle
- 15
- Fork
- 10
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di linuxmint/aptkit
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 50/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
Tutte le issue di linuxmint/aptkit
Issue simili
-
documentation help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
simonw/sqlite-utils#872 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100