-
Notifications
You must be signed in to change notification settings - Fork 5
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
Dump parallel failure to log unless "debug" is "true" #1645
base: master
Are you sure you want to change the base?
Conversation
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.
needs a test
function debug_print(varargin) | ||
if debug | ||
fprintf(varargin{:}); | ||
else | ||
fprintf(fh, varargin{:}); | ||
end | ||
end |
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.
completely agree with need for test. Absolutely not-obvious that fh
is global variable and it propagated correctly.
The idea itself looks reasonable.
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.
needs test
66f81bf
to
02ce952
Compare
MExceptions_outputs(i) = true; | ||
debug_print('Task %d failed. Error %s; Message %s\n', ... | ||
i, outputs{i}.identifier, outputs{i}.message); | ||
|
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.
I was playing with various failing jobs during the week and would argue that this should be reconsidered.
When job fails, it prints short list of messages stating worker failed (one row)
Then it prints detailed information.
The detailed information should go into log, that's correct.
But short info about job failure should remain. Then it should be one string
see file .... for details of the issue
.
I do not want to investigate this issue too deeply, but have a feeling that modified changes are too brief. The suggested solution would provide much better user experience.
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.
suggestion done below
7efef8c
to
bdcd1e5
Compare
bdcd1e5
to
a5a8f13
Compare
Fixes #1609