Commit 656ff6f3 authored by xuehui's avatar xuehui Committed by GitHub
Browse files

Update log.h

parent d3657628
...@@ -85,11 +85,8 @@ private: ...@@ -85,11 +85,8 @@ private:
// a trick to use static variable in header file. // a trick to use static variable in header file.
// May be not good, but avoid to use an additional cpp file // May be not good, but avoid to use an additional cpp file
static LogLevel& GetLevel() { static LogLevel& GetLevel() { static LogLevel level; return level; }
static LogLevel level;
return level;
};
}; };
} // namespace LightGBM } // namespace LightGBM
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment