X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FLog.cc;h=863ab87317c6cc9f2e7235877a1fa7d0818c8147;hp=3094642565e96550f1ac3ee434296c80dac9a6d6;hb=4f9eb9259092994de9690cf12f11437c35a6791e;hpb=4f62ce947db282f0bbf4d49b3aafb83d7cf51adc diff --git a/src/Moof/Log.cc b/src/Moof/Log.cc index 3094642..863ab87 100644 --- a/src/Moof/Log.cc +++ b/src/Moof/Log.cc @@ -40,7 +40,7 @@ Log::Level Log::gLevel = Log::INFO; void Log::setLevel(Level level) { - if (level != 0) gLevel = level; + gLevel = level; } Log::Level Log::getLevel() @@ -49,9 +49,9 @@ Log::Level Log::getLevel() } -static std::ofstream nullLog_; - std::ostream& log(std::clog); + +static std::ofstream nullLog_; std::ostream& nullLog(nullLog_); Log logError(Log::ERRORR, " error: ");