Closed Bug 1029777 Opened 11 years ago Closed 11 years ago

Redirect runner logging output to /var/log/runner.log

Categories

(Infrastructure & Operations Graveyard :: CIDuty, task)

x86
macOS
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ianconnolly, Assigned: ianconnolly)

References

Details

Attachments

(1 file, 1 obsolete file)

No description provided.
we'll need to rotate logs and delete them eventually as well.
(In reply to Chris AtLee [:catlee] from comment #1) > we'll need to rotate logs and delete them eventually as well. Got any suggestions for time-to-rotate and how many we should keep before deleting?
Status: NEW → ASSIGNED
No special preferences. Rotate every boot? Keep 10 previous logs, gzip'ed?
Attached patch logging.diff (obsolete) — Splinter Review
This should do what we want to do.
Attachment #8447280 - Flags: review?(dustin)
Comment on attachment 8447280 [details] [diff] [review] logging.diff Review of attachment 8447280 [details] [diff] [review]: ----------------------------------------------------------------- r+ with that change ::: modules/runner/templates/runner.initd.erb @@ +37,2 @@ > ### XXX -n 1 for testing > + if ${CMD} -c ${CONFIG} -n 1 ${TASKDIR} > /var/log/runner.log 2>&1; then You probably want >> here
Attachment #8447280 - Flags: review?(dustin) → review+
Hrm, even with the logrotate -f line forcing a log rotation (and thus an empty file) directly above?(In reply to Dustin J. Mitchell [:dustin] from comment #5) > Comment on attachment 8447280 [details] [diff] [review] > logging.diff > > Review of attachment 8447280 [details] [diff] [review]: > ----------------------------------------------------------------- > > r+ with that change > > ::: modules/runner/templates/runner.initd.erb > @@ +37,2 @@ > > ### XXX -n 1 for testing > > + if ${CMD} -c ${CONFIG} -n 1 ${TASKDIR} > /var/log/runner.log 2>&1; then > > You probably want >> here Hrm, even with the logrotate -f line forcing a log rotation (and thus an empty file) directly above?
Attached patch logging.diffSplinter Review
Carrying the r+ over from :dustin.
Attachment #8447280 - Attachment is obsolete: true
Attachment #8447293 - Flags: review+
Attachment #8447293 - Flags: checked-in?
Attachment #8447293 - Flags: checked-in? → checked-in+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Component: Platform Support → Buildduty
Product: Release Engineering → Infrastructure & Operations
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: