From 1bd86307c679f5fd6c90868ebb5b146e19d5177c Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Mon, 16 May 2016 12:29:29 +0300 Subject: [PATCH] Allow 5 params in Log, fix typo --- libgrive/src/base/Resource.cc | 2 +- libgrive/src/util/log/Log.hh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libgrive/src/base/Resource.cc b/libgrive/src/base/Resource.cc index 003e894..fecbe56 100644 --- a/libgrive/src/base/Resource.cc +++ b/libgrive/src/base/Resource.cc @@ -186,7 +186,7 @@ void Resource::FromRemoteFile( const Entry& remote ) // remote checksum unknown, assume the file is not changed in remote else if ( remote.MD5().empty() ) { - Log( "file %1% has unknown checksum in remote. assuned in sync", + Log( "file %1% has unknown checksum in remote. assumed in sync", Path(), log::verbose ) ; m_state = sync ; } diff --git a/libgrive/src/util/log/Log.hh b/libgrive/src/util/log/Log.hh index 9646042..762320c 100644 --- a/libgrive/src/util/log/Log.hh +++ b/libgrive/src/util/log/Log.hh @@ -115,6 +115,12 @@ void Log( LogBase::Inst()->Log( log::Fmt(fmt) % p1 % p2 % p3 % p4, s ) ; } +template +void Log( const std::string& fmt, const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5, log::Serverity s = log::info ) +{ + LogBase::Inst()->Log( log::Fmt(fmt) % p1 % p2 % p3 % p4 % p5, s ) ; +} + void Trace( const std::string& str ) ; template