-
Notifications
You must be signed in to change notification settings - Fork 94
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
Turn log timestamps back on before running Cylc Play in VIP & VR #5524
Conversation
5501407
to
be6cbc1
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.
Looks good. One minor issue, it would be slightly cleaner to have a single toggle_timestamps
function?
Sort of - my only concern is that for me the word "toggle" means "get the state and change it to the other state". Whilst this function could do this, I think it's better if it specifies the desired state to avoid ambiguity - I think in the places it is used it's more to do "set the state to this, whatever it was before". To this end I've made the |
Yes, badly chosen word sorry. I really meant something like |
ff065e7
to
f0f8a34
Compare
(if that is what user has asked for). - Replace enable or disable with a single toggle_timestamps fn - Made enable an arg not a keyword arg because I'd expect kwarg with function name "toggle" to change state to the other state if unspecified. Co-authored-by: Ronnie Dutta <61982285+MetRonnie@users.noreply.github.com>
f0f8a34
to
d4d3447
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.
Tested out
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.
👍
Closes #5505
Cylc Validate disables the use of timestamps in logging. I've added a command to allow it to be restarted before these commands play a workflow.
Check List
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
(andconda-environment.yml
if present).CHANGES.md
entry included if this is a change that can affect users?.?.x
branch.