You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Errors, even if fatal, are printed to standard output instead of standard error (or log) stream.
What I'm after, in particular, is a call with -c parameter pointing to unexistent configuration file.
All messages, I see in code, are sent to a so-called meta filedescriptor.
Such meta filedescriptor is initially set to stdout and can be further by passing a second parameter to the command invocation, wereas it becomes the "log file".
So, until all command lines are processed, and unless a log file is specified, errors are printed to stdout, being the "default log stream".
I'm not sure how to best handle this, but when using standard output for the actual destination of the copy (see #31) finding errors in that stream gets in the way...
The text was updated successfully, but these errors were encountered:
With #34 I've made all messages go to stderr until the "logfile" argument is considered. At that point, after successfully opening the logfile, all messages to to logfile. This also keeps the current default logfile being "stdout" as all messages will go to stdout after checking no different logfile was requested.
…34)
Somehow fixes#33
Include motivation for inability to open config file or metadata file
Include test for a specific error (not found configuration file)
Errors, even if fatal, are printed to standard output instead of standard error (or log) stream.
What I'm after, in particular, is a call with
-c
parameter pointing to unexistent configuration file.All messages, I see in code, are sent to a so-called
meta
filedescriptor.Such
meta
filedescriptor is initially set tostdout
and can be further by passing a second parameter to the command invocation, wereas it becomes the "log file".So, until all command lines are processed, and unless a log file is specified, errors are printed to stdout, being the "default log stream".
I'm not sure how to best handle this, but when using standard output for the actual destination of the copy (see #31) finding errors in that stream gets in the way...
The text was updated successfully, but these errors were encountered: