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

log to stderr (so journal) by default #541

Merged
merged 1 commit into from Feb 11, 2016

Conversation

AdamWill
Copy link
Contributor

in Fedora package review it became apparent that logging to a
file is rather more complex in terms of packaging and system
security than it might appear. Logging to the journal is kinda
a good practice on systemd distros (i.e. all the ones we care
about) in any case, and we can easily default to it by leaving
the 'file' setting undefined by default. Admins who want to log
to a file still easily can by defining the 'file' setting, and
then the security issues are all theirs to deal with...

This isn't very sophisticated (the severity of the messages
isn't transmitted to journald, for instance) but works well
enough, seemingly.

This change will affect existing deployments which do not have
the file setting in the config file explicitly specified.

This is a trivial change technically speaking, the question is more whether or not we think it's a good idea. I'm just throwing it out there for discussion. The Fedora package review ticket is https://bugzilla.redhat.com/show_bug.cgi?id=1304882 , for reference, the discussion of logging bits begins in earnest around comment 17 or so.

Just to be clear, logging to file is still perfectly possible with this change, it only changes the default behaviour when the file setting isn't explicitly specified in openqa.ini (or as OPENQA_LOGFILE env var).

in Fedora package review it became apparent that logging to a
file is rather more complex in terms of packaging and system
security than it might appear. Logging to the journal is kinda
a good practice on systemd distros (i.e. all the ones we care
about) in any case, and we can easily default to it by leaving
the 'file' setting undefined by default. Admins who want to log
to a file still easily can by defining the 'file' setting, and
then the security issues are all theirs to deal with...

This isn't very sophisticated (the severity of the messages
isn't transmitted to journald, for instance) but works well
enough, seemingly.

This change will affect existing deployments which do not have
the `file` setting in the config file explicitly specified.
blacklist = job_grab job_done
Copy link
Contributor Author

Choose a reason for hiding this comment

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

huh, gedit just did this for me automatically, I think.

@okurz
Copy link
Member

okurz commented Feb 10, 2016

LGTM

coolo added a commit that referenced this pull request Feb 11, 2016
log to stderr (so journal) by default
@coolo coolo merged commit ca28b6e into os-autoinst:master Feb 11, 2016
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

3 participants