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

fix(taskrunner): consistent, nicer formatting for task failed log #391

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

benhoyt
Copy link
Contributor

@benhoyt benhoyt commented Mar 21, 2024

This changes this log:

2024-03-21T06:37:37.224Z [pebble] [change 32 "Start service \"svc1\"" task] failed: cannot start service: exited quickly with code 1

To this, which is more consistent with the formatting of the other Pebble logs:

2024-03-21T06:43:09.559Z [pebble] Change 33 task (Start service "svc1") failed: cannot start service: exited quickly with code 1

This log was introduced in this commit:
e494ff2#diff-e8b7c8da8654dde95838cfa0cc4b497cdd32050ea3a1bf0640e6404303aef0d6R294 which was pulled across from snapd, which originally added it here: canonical/snapd@8b2a5a8

This changes this log:

2024-03-21T06:37:37.224Z [pebble] [change 32 "Start service \"svc1\"" task] failed: cannot start service: exited quickly with code 1

To this, which is more consistent with the formatting of the other
Pebble logs:

2024-03-21T06:43:09.559Z [pebble] Change 33 task (Start service "svc1") failed: cannot start service: exited quickly with code 1

This log was introduced in this commit:
canonical@e494ff2#diff-e8b7c8da8654dde95838cfa0cc4b497cdd32050ea3a1bf0640e6404303aef0d6R294
which was pulled across from snapd, which originally added it here:
canonical/snapd@8b2a5a8
Copy link
Member

@olivercalder olivercalder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, no objections from the snapd team. I'll open a similar PR against snapd once this is merged.

Thanks for catching/fixing this!

@benhoyt
Copy link
Contributor Author

benhoyt commented Mar 27, 2024

Thanks @olivercalder -- merging.

@benhoyt benhoyt merged commit 0d00024 into canonical:master Mar 27, 2024
15 checks passed
@benhoyt benhoyt deleted the fix-taskrunner-log branch March 27, 2024 19:25
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.

2 participants