mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-21 07:26:29 -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
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue