Overly verbose logging to journalctl
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Tái hiện giao dịch của update-manager và so sánh các mục AptKit và org.aptkit bị trùng lặp trong journalctl. Truy vết cấu hình logging tạo ra cả hai mục, đồng thời kiểm tra vị trí cảnh báo tại /usr/lib/python3/dist-packages/aptkit/progress.py:485. Hoàn tất khi các thông báo aptkit trùng lặp được loại bỏ hoặc có thể kiểm soát mà không thay đổi logging của các dịch vụ không liên quan.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Python
- Star
- 15
- Fork
- 10
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của linuxmint/aptkit
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 50/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
Tất cả issue của linuxmint/aptkit
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
zostera/django-bootstrap4#894 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
use-agent-os/agent-os#3276 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
zephyrproject-rtos/zephyr#119726 ·
-
area/auth bug comp/agent P3 platform/discord type/security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
NousResearch/hermes-agent#117848 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
zilliztech/memsearch#759 ·