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

logrus: add deployment channel as field to the logs #4285

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

schuellerf
Copy link
Contributor

As far as I saw in the openshift deployment, the parameter "CHANNEL" is already set implicitly by the environment (…/environments/stage.yml or …/environments/production.yml)
If something like this worked, this would be awesome for filtering logs

@schuellerf
Copy link
Contributor Author

probably it would also work if we remove the default value ("local" now) from templates/openshift/composer.yml to really skip it if undefined?

@schuellerf
Copy link
Contributor Author

Hmm - if this works - I should probably move this to the slogger subdir so it can be reused in image-builder?

@schuellerf schuellerf requested a review from thozza August 2, 2024 08:14
Copy link
Member

@thozza thozza left a comment

Choose a reason for hiding this comment

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

Thanks! The change looks good AFAICT and it could really make the logs easier to filter.

@thozza
Copy link
Member

thozza commented Aug 2, 2024

Hmm - if this works - I should probably move this to the slogger subdir so it can be reused in image-builder?

Would probably make sense, yes.

@schuellerf
Copy link
Contributor Author

@croissanne any concerns merging it?

cmd/osbuild-composer/config.go Show resolved Hide resolved
@schuellerf schuellerf force-pushed the add-deployment-channel-to-logs branch from 484b3df to 145c9f1 Compare August 2, 2024 13:49
@schuellerf schuellerf enabled auto-merge (rebase) August 2, 2024 13:50
@schuellerf schuellerf merged commit 9006836 into osbuild:main Aug 7, 2024
43 checks passed
schuellerf added a commit to schuellerf/osbuild-composer that referenced this pull request Aug 12, 2024
schuellerf added a commit that referenced this pull request Aug 12, 2024
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.

3 participants