-
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
Suite log upgrade. #1958
Suite log upgrade. #1958
Conversation
4934992
to
6804b0a
Compare
Resolved conflicts. |
6804b0a
to
8590964
Compare
return True | ||
|
||
|
||
class SuiteLog(object): # TODO: singleton me ? |
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.
The TODO comment is obsolete?
Looks good, tests as working. A minor problem, and a question:
|
d56b097
to
3d4092c
Compare
|
I can't really think of a good reason not to. @cylc/core - any opinions on this? |
One point to consider is that many tests use |
No opinions hopefully means no objections? |
Wouldn't count on it... |
@arjclark - can you follow through on this comment? This is a nice improvement as is, so I don't mind if we leave stdout as is, format it with this PR, or add formatting later. |
We're in the middle of holidays at the moment with people all over the place so I suspect a few of us haven't had time to read this yet. Personally, it makes sense to me to do what @oliver-sanders is suggesting though 👍 |
Now discussed and we're happy with @oliver-sanders's proposal. |
036e868
to
0dc0bec
Compare
The out log is now formatted the same way as err and log. Only one test was broken which I have fixed by adding a |
A couple of problems noticed:
|
0dc0bec
to
e5cfb7c
Compare
Changes made to
Old:
New:
|
e5cfb7c
to
60d479f
Compare
Looks good, just one very minor issue now: double ERROR on attempting to start an already-running suite:
|
1efe644
to
a0b5dcb
Compare
Fixed |
All good here, over to @arjclark |
a0b5dcb
to
fb630b2
Compare
Rebased. |
Closes #846
Closes #1446
To be merged after metomi/rose#1955
Suite logging is now handled by the
logging
module. Log files are symlinked rather than renamed and are rolled over together as soon as any one reaches the size threshold.Note:
cylc cat-log
updated to handle new naming systemcylc gui
updated to handle new naming systemrose bush
to be updated by rose bush: add rotated log files to the "cylc files" menu metomi/rose#1955\n
which will be automatically expanded to\n\t
(customisable)Results of profiling for the 'busy' suite (over one cycle) show no significant change
Hopefully I have caught all the relevant
print
/sys.std???.write()
statements (if any remain the messages will still make it to the suite logs).@hjoliver Please review / reassign
@arjclark Please review / reassign