From: <sv...@ww...> - 2004-06-16 02:53:50
|
Author: mkrose Date: 2004-06-15 19:53:44 -0700 (Tue, 15 Jun 2004) New Revision: 1046 Modified: trunk/CSP/SimData/Include/SimData/Log.h Log: Fix check for SIMDATA_LOGFILE env variable. Browse at: https://www.zerobar.net/viewcvs/viewcvs.cgi?view=rev&rev=1046 Modified: trunk/CSP/SimData/Include/SimData/Log.h =================================================================== --- trunk/CSP/SimData/Include/SimData/Log.h 2004-06-15 18:08:08 UTC (rev 1045) +++ trunk/CSP/SimData/Include/SimData/Log.h 2004-06-16 02:53:44 UTC (rev 1046) @@ -61,7 +61,7 @@ char *save = getenv("SIMDATA_LOGFILE"); // default to stderr if SIMDATA_LOGFILE isn't set logstrm = new logstream(std::cerr); - if (save) { + if (save && *save) { logstrm->setOutput(save); } } |