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

Fix redirection of stdout and stderr to suite logs #2412

Merged
merged 4 commits into from
Aug 29, 2017

Conversation

oliver-sanders
Copy link
Member

@oliver-sanders oliver-sanders commented Aug 25, 2017

Close #2411

Changes:

  • When the suite is running in detached mode stdout and stderr redirected to log/out and log/err respectively. When the logs rotate these streams are re-directed again so as to pick up the new file.
  • Logs are only re-directed to stdout/stderr when running in non-detatched mode

@oliver-sanders oliver-sanders added the bug Something is wrong :( label Aug 25, 2017
@oliver-sanders oliver-sanders added this to the next release milestone Aug 25, 2017
@oliver-sanders oliver-sanders self-assigned this Aug 25, 2017
@oliver-sanders oliver-sanders force-pushed the duplicate-log-entry-fix branch from 3ae2978 to 97f2a3c Compare August 25, 2017 11:55
@oliver-sanders oliver-sanders force-pushed the duplicate-log-entry-fix branch from 97f2a3c to c1d1553 Compare August 25, 2017 14:44
@oliver-sanders
Copy link
Member Author

The test can be cleaned up a little, it'll do for now. I'll add a further test for sequential timestamps next week, these changes can go into a future cylc release.

@@ -217,14 +217,17 @@ def start(self):
self.suite_db_mgr.restart_upgrade()

try:
if not self.options.no_detach and not cylc.flags.debug:
detatch = not (self.options.no_detach or cylc.flags.debug)
Copy link
Member

@hjoliver hjoliver Aug 27, 2017

Choose a reason for hiding this comment

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

Spelling: should be "detach" (although it's not a bug, as consistently misspelled!)

@hjoliver
Copy link
Member

The code looks fine, but the test always passes for me on master - presumably that should not happen?

@oliver-sanders
Copy link
Member Author

Missed a -q from the grep command, test should now fail on master.

@hjoliver
Copy link
Member

All good, thanks. @matthewrmshin - note I've updated the change log for 7.5.0, and will attempt to make the release Wednesday night. I'm in a workshop all day tomorrow, and on leave Thursday and Friday. Worst case, release on the weekend...

@hjoliver hjoliver merged commit 6f4e80f into cylc:master Aug 29, 2017
@oliver-sanders oliver-sanders deleted the duplicate-log-entry-fix branch December 14, 2017 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong :(
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants