-
Notifications
You must be signed in to change notification settings - Fork 27
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
Make default log level part of pelican config #236
Make default log level part of pelican config #236
Conversation
a66c0cf
to
8b3a0a8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NACK. This needs to be rebased to bring in only the relevant commits (and not include the 50MB executable).
805c0fe
to
e827278
Compare
Okay, should be fixed with rebasing now and the commits look better. Still running into the issue I found yesterday about root.go not being able to read in defaults.yaml so working towards a fix now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few more comments on the updates.
This commit should have fixed all the rebasing issues. Work towards pelican log level able to be set in config. The -d flag takes priority of all log level settings. Also, found some variable names that were still in snake case and changed them to camelcase. This PR did work not too long ago but is now running into issues. It seems that in root.go it cannot read defaults.yaml so the log level cannot be set in there. Working towards a fix.
Now that the configurations are cleaned up, can successfully add the log level as part of config. This should work for all methods (pelican, osdf, and stashcp). However, for stashcp, nothing happens for log levels set in config and you must use the `-d` flag since it does not go through root.
e827278
to
25150b0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Sets the default log level to
ErrorLevel
withindefaults.yaml
. The user is now able to modify their config file and override the default to whatever log level they would like. In addition, the -d flag functionality should remain the same and override whatever config is set. Also found a problem inobject_copy.go
which this does not work if the binary is named stashcp, should work now. Fixed some noticed snake case variable names floating around too and decided to fix them.