Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transaction: Add transaction data to syslog when available #744

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sidt4
Copy link
Contributor

@sidt4 sidt4 commented Apr 23, 2024

I've been using it for a while and it helps greatly in debugging PK clients.

Sample journalctl log during GNOME Software start:

Apr 23 17:23:10 linux PackageKit[39494]: resolve transaction /1_aedeeece (n=15) from uid 1010 finished with success after 880ms
Apr 23 17:23:11 linux PackageKit[39494]: resolve transaction /2_aeabcabd (n=128) from uid 1010 finished with success after 872ms
Apr 23 17:23:12 linux PackageKit[39494]: resolve transaction /3_dbbbdeae (n=45) from uid 1010 finished with success after 856ms
Apr 23 17:23:13 linux PackageKit[39494]: resolve transaction /4_aacdbebe (n=20) from uid 1010 finished with success after 814ms
Apr 23 17:23:14 linux PackageKit[39494]: resolve transaction /5_baaadcee (n=11) from uid 1010 finished with success after 837ms
Apr 23 17:23:14 linux PackageKit[39494]: resolve transaction /6_beccaded (geary) from uid 1010 finished with success after 797ms
Apr 23 17:23:15 linux PackageKit[39494]: resolve transaction /7_eecccabc (n=36) from uid 1010 finished with success after 922ms
Apr 23 17:23:16 linux PackageKit[39494]: resolve transaction /8_ddaeeabe (n=311) from uid 1010 finished with success after 870ms
Apr 23 17:23:17 linux PackageKit[39494]: resolve transaction /9_bdeaeeee (n=189) from uid 1010 finished with success after 890ms
Apr 23 17:23:18 linux PackageKit[39494]: resolve transaction /10_bdcbdeba (n=453) from uid 1010 finished with success after 906ms
Apr 23 17:23:19 linux PackageKit[39494]: resolve transaction /11_dcaacead (n=497) from uid 1010 finished with success after 998ms
Apr 23 17:23:20 linux PackageKit[39494]: resolve transaction /12_ceadecda (n=17) from uid 1010 finished with success after 840ms
Apr 23 17:23:21 linux PackageKit[39494]: resolve transaction /13_caceabda (n=431) from uid 1010 finished with success after 893ms
Apr 23 17:23:22 linux PackageKit[39494]: resolve transaction /14_aacbabcd (gnome-software) from uid 1010 finished with success after 964ms
Apr 23 17:23:23 linux PackageKit[39494]: get-updates transaction /15_eccdadec from uid 1010 finished with success after 1690ms
Apr 23 17:23:25 linux PackageKit[39494]: get-updates transaction /16_ccbabebc from uid 1010 finished with success after 1782ms
Apr 23 17:23:26 linux PackageKit[39494]: resolve transaction /17_bbddabee (n=135) from uid 1010 finished with success after 899ms
Apr 23 17:23:35 linux PackageKit[39494]: search-file transaction /18_edeacabe (/usr/share/metainfo/org.freedesktop.appstream.compose.metainfo.xml) from uid 1010 finished with success after 8712ms
Apr 23 17:23:36 linux PackageKit[39494]: search-file transaction /19_edadcbaa (/usr/share/applications/firefox-esr.desktop) from uid 1010 finished with success after 1204ms
Apr 23 17:23:37 linux PackageKit[39494]: search-file transaction /20_bacedccc (/usr/share/applications/google-chrome.desktop) from uid 1010 finished with success after 1147ms
Apr 23 17:23:39 linux PackageKit[39494]: search-file transaction /21_addccaed (/usr/share/applications/empathy.desktop) from uid 1010 finished with success after 1262ms
Apr 23 17:23:39 linux PackageKit[39494]: resolve transaction /22_ededbbaa (n=4) from uid 1010 finished with success after 831ms
Apr 23 17:23:40 linux PackageKit[39494]: resolve transaction /23_daebcbce (n=20) from uid 1010 finished with success after 860ms
Apr 23 17:23:41 linux PackageKit[39494]: get-details transaction /24_deabdcea (n=20) from uid 1010 finished with success after 768ms
Apr 23 17:23:43 linux PackageKit[39494]: get-updates transaction /25_adedabdb from uid 1010 finished with success after 1515ms
Apr 23 17:23:43 linux PackageKit[39494]: get-details transaction /26_aaddabee (gnome-software;46.0-4;amd64;manual:debian-unstable-main) from uid 1010 finished with success after 767ms
Apr 23 17:23:44 linux PackageKit[39494]: get-details transaction /27_deaecbba (n=3) from uid 1010 finished with success after 775ms
Apr 23 17:23:45 linux PackageKit[39494]: get-details transaction /28_cdeabacd (n=2) from uid 1010 finished with success after 769ms
Apr 23 17:23:59 linux PackageKit[39494]: get-details transaction /29_caadeacc (bijiben;40.1-6+b1;amd64;manual:debian-unstable-main) from uid 1010 finished with success after 819ms
Apr 23 17:24:00 linux PackageKit[39494]: get-details transaction /30_acacbebc (bijiben;40.1-6+b1;amd64;manual:debian-unstable-main) from uid 1010 finished with success after 789ms
Apr 23 17:24:01 linux PackageKit[39494]: get-details transaction /31_edbcdaab (bijiben;40.1-6+b1;amd64;manual:debian-unstable-main) from uid 1010 finished with success after 867ms
Apr 23 17:24:31 linux PackageKit[39494]: resolve transaction /32_ebeedbbd (n=7) from uid 1010 finished with success after 779ms
Apr 23 17:24:32 linux PackageKit[39494]: get-details transaction /33_ecbcddee (n=11) from uid 1010 finished with success after 782ms
Apr 23 17:29:34 linux PackageKit[39494]: daemon quit

@sidt4
Copy link
Contributor Author

sidt4 commented Apr 25, 2024

@sidt4 sidt4 force-pushed the add-transaction-data-to-syslog branch from 4737f62 to abf0bbb Compare April 26, 2024 17:17
@sidt4
Copy link
Contributor Author

sidt4 commented May 23, 2024

Guess this feature can be enabled / disabled by a command line option to /usr/libexec/packagekitd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant