diff --git a/HISTORY b/HISTORY index a2706433..b8868d26 100644 --- a/HISTORY +++ b/HISTORY @@ -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. diff --git a/snapraid.1 b/snapraid.1 index 86b1f98f..7554d1f1 100644 --- a/snapraid.1 +++ b/snapraid.1 @@ -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. diff --git a/snapraid.c b/snapraid.c index 5e255493..42c949e5 100644 --- a/snapraid.c +++ b/snapraid.c @@ -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) { diff --git a/snapraid.d b/snapraid.d index bb617847..8bb4e350 100644 --- a/snapraid.d +++ b/snapraid.d @@ -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. diff --git a/snapraid.txt b/snapraid.txt index 2d211dd2..920a0c10 100644 --- a/snapraid.txt +++ b/snapraid.txt @@ -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.