mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-05 06:10:13 -05:00
Changes the log default. Now it's stderr.
This commit is contained in:
parent
349cf0cdc8
commit
bcf04a01a7
5 changed files with 8 additions and 20 deletions
1
HISTORY
1
HISTORY
|
|
@ -10,7 +10,6 @@ SnapRAID HISTORY
|
||||||
* Added a new -i, --import option to automatically import deleted files
|
* Added a new -i, --import option to automatically import deleted files
|
||||||
when fixing.
|
when fixing.
|
||||||
* Added a new -l, --log option to save to disk the detailed log.
|
* 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 also for hardlinks and empty directories.
|
||||||
* Added support to save symlinks to files in Windows. Note that only the
|
* Added support to save symlinks to files in Windows. Note that only the
|
||||||
symlink is saved and not the linked file.
|
symlink is saved and not the linked file.
|
||||||
|
|
|
||||||
|
|
@ -519,10 +519,8 @@ It\(cqs present mainly for advanced manual recovering.
|
||||||
Outputs a detailed log to the specified file.
|
Outputs a detailed log to the specified file.
|
||||||
It contains the exact specification of which block of
|
It contains the exact specification of which block of
|
||||||
any file is not recoverable and why.
|
any file is not recoverable and why.
|
||||||
You can use the special files \(a"1\(a" and \(a"2\(a" to output
|
If this option is not specified, the log is printed in
|
||||||
to stdout and stderr.
|
the console using the standard error stream.
|
||||||
If this option is not specified, no detailed log is
|
|
||||||
generated.
|
|
||||||
.TP
|
.TP
|
||||||
.B \(hyv, \(hy\(hyverbose
|
.B \(hyv, \(hy\(hyverbose
|
||||||
Prints more information in the processing.
|
Prints more information in the processing.
|
||||||
|
|
|
||||||
|
|
@ -385,13 +385,8 @@ int main(int argc, char* argv[])
|
||||||
raid_init();
|
raid_init();
|
||||||
|
|
||||||
/* open the log file */
|
/* open the log file */
|
||||||
if (log == 0) {
|
if (log == 0)
|
||||||
#ifdef _WIN32
|
log = "2";
|
||||||
log = "nul";
|
|
||||||
#else
|
|
||||||
log = "/dev/null";
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
if (strcmp(log, "1") == 0) {
|
if (strcmp(log, "1") == 0) {
|
||||||
stdlog = stdout;
|
stdlog = stdout;
|
||||||
} else if (strcmp(log, "2") == 0) {
|
} else if (strcmp(log, "2") == 0) {
|
||||||
|
|
|
||||||
|
|
@ -376,10 +376,8 @@ Options
|
||||||
Outputs a detailed log to the specified file.
|
Outputs a detailed log to the specified file.
|
||||||
It contains the exact specification of which block of
|
It contains the exact specification of which block of
|
||||||
any file is not recoverable and why.
|
any file is not recoverable and why.
|
||||||
You can use the special files "1" and "2" to output
|
If this option is not specified, the log is printed in
|
||||||
to stdout and stderr.
|
the console using the standard error stream.
|
||||||
If this option is not specified, no detailed log is
|
|
||||||
generated.
|
|
||||||
|
|
||||||
-v, --verbose
|
-v, --verbose
|
||||||
Prints more information in the processing.
|
Prints more information in the processing.
|
||||||
|
|
|
||||||
|
|
@ -411,10 +411,8 @@ SnapRAID provides the following options:
|
||||||
Outputs a detailed log to the specified file.
|
Outputs a detailed log to the specified file.
|
||||||
It contains the exact specification of which block of
|
It contains the exact specification of which block of
|
||||||
any file is not recoverable and why.
|
any file is not recoverable and why.
|
||||||
You can use the special files "1" and "2" to output
|
If this option is not specified, the log is printed in
|
||||||
to stdout and stderr.
|
the console using the standard error stream.
|
||||||
If this option is not specified, no detailed log is
|
|
||||||
generated.
|
|
||||||
|
|
||||||
-v, --verbose
|
-v, --verbose
|
||||||
Prints more information in the processing.
|
Prints more information in the processing.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue