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

@ -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) {