mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 11:04:00 +01:00
set correct log level for console
This commit is contained in:
parent
64b2a32c9a
commit
3eeee1b08d
|
@ -153,7 +153,9 @@ namespace i2p
|
||||||
}
|
}
|
||||||
StartLog (logfile);
|
StartLog (logfile);
|
||||||
}
|
}
|
||||||
g_Log->SetLogLevel(loglevel);
|
else
|
||||||
|
StartLog ("");
|
||||||
|
SetLogLevel(loglevel);
|
||||||
|
|
||||||
bool http; i2p::config::GetOption("http.enabled", http);
|
bool http; i2p::config::GetOption("http.enabled", http);
|
||||||
if (http) {
|
if (http) {
|
||||||
|
|
6
Log.h
6
Log.h
|
@ -95,6 +95,12 @@ inline void StopLog ()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline void SetLogLevel (const std::string& level)
|
||||||
|
{
|
||||||
|
if (g_Log)
|
||||||
|
g_Log->SetLogLevel(level);
|
||||||
|
}
|
||||||
|
|
||||||
template<typename TValue>
|
template<typename TValue>
|
||||||
void LogPrint (std::stringstream& s, TValue arg)
|
void LogPrint (std::stringstream& s, TValue arg)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue