Changes the log default. Now it's stderr.

This commit is contained in:
Andrea Mazzoleni 2013-03-02 18:20:37 +01:00
parent 349cf0cdc8
commit bcf04a01a7
5 changed files with 8 additions and 20 deletions

View file

@ -10,7 +10,6 @@ SnapRAID HISTORY
* Added a new -i, --import option to automatically import deleted files
when fixing.
* Added a new -l, --log option to save to disk the detailed log.
Note that if not specified the log is not printed anymore by default.
* Added support also for hardlinks and empty directories.
* Added support to save symlinks to files in Windows. Note that only the
symlink is saved and not the linked file.

View file

@ -519,10 +519,8 @@ It\(cqs present mainly for advanced manual recovering.
Outputs a detailed log to the specified file.
It contains the exact specification of which block of
any file is not recoverable and why.
You can use the special files \(a"1\(a" and \(a"2\(a" to output
to stdout and stderr.
If this option is not specified, no detailed log is
generated.
If this option is not specified, the log is printed in
the console using the standard error stream.
.TP
.B \(hyv, \(hy\(hyverbose
Prints more information in the processing.

View file

@ -385,13 +385,8 @@ int main(int argc, char* argv[])
raid_init();
/* open the log file */
if (log == 0) {
#ifdef _WIN32
log = "nul";
#else
log = "/dev/null";
#endif
}
if (log == 0)
log = "2";
if (strcmp(log, "1") == 0) {
stdlog = stdout;
} else if (strcmp(log, "2") == 0) {

View file

@ -376,10 +376,8 @@ Options
Outputs a detailed log to the specified file.
It contains the exact specification of which block of
any file is not recoverable and why.
You can use the special files "1" and "2" to output
to stdout and stderr.
If this option is not specified, no detailed log is
generated.
If this option is not specified, the log is printed in
the console using the standard error stream.
-v, --verbose
Prints more information in the processing.

View file

@ -411,10 +411,8 @@ SnapRAID provides the following options:
Outputs a detailed log to the specified file.
It contains the exact specification of which block of
any file is not recoverable and why.
You can use the special files "1" and "2" to output
to stdout and stderr.
If this option is not specified, no detailed log is
generated.
If this option is not specified, the log is printed in
the console using the standard error stream.
-v, --verbose
Prints more information in the processing.