mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
rollback
This commit is contained in:
parent
2e301c2919
commit
5f463d5f6b
6
Log.h
6
Log.h
@ -152,14 +152,14 @@ namespace log {
|
|||||||
|
|
||||||
/** internal usage only -- folding args array to single string */
|
/** internal usage only -- folding args array to single string */
|
||||||
template<typename TValue>
|
template<typename TValue>
|
||||||
void LogPrint (std::stringstream& s, TValue&& arg)
|
void LogPrint (std::stringstream& s, TValue&& arg) noexcept
|
||||||
{
|
{
|
||||||
s << std::forward<TValue>(arg);
|
s << std::forward<TValue>(arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** internal usage only -- folding args array to single string */
|
/** internal usage only -- folding args array to single string */
|
||||||
template<typename TValue, typename... TArgs>
|
template<typename TValue, typename... TArgs>
|
||||||
void LogPrint (std::stringstream& s, TValue&& arg, TArgs&&... args)
|
void LogPrint (std::stringstream& s, TValue&& arg, TArgs&&... args) noexcept
|
||||||
{
|
{
|
||||||
LogPrint (s, std::forward<TValue>(arg));
|
LogPrint (s, std::forward<TValue>(arg));
|
||||||
LogPrint (s, std::forward<TArgs>(args)...);
|
LogPrint (s, std::forward<TArgs>(args)...);
|
||||||
@ -171,7 +171,7 @@ void LogPrint (std::stringstream& s, TValue&& arg, TArgs&&... args)
|
|||||||
* @param args Array of message parts
|
* @param args Array of message parts
|
||||||
*/
|
*/
|
||||||
template<typename... TArgs>
|
template<typename... TArgs>
|
||||||
void LogPrint (LogLevel level, TArgs&&... args)
|
void LogPrint (LogLevel level, TArgs&&... args) noexcept
|
||||||
{
|
{
|
||||||
i2p::log::Log &log = i2p::log::Logger();
|
i2p::log::Log &log = i2p::log::Logger();
|
||||||
if (level > log.GetLogLevel ())
|
if (level > log.GetLogLevel ())
|
||||||
|
Loading…
Reference in New Issue
Block a user