mirror of https://github.com/vitalif/grive2
Allow 5 params in Log, fix typo
parent
44d3ddf928
commit
1bd86307c6
|
@ -186,7 +186,7 @@ void Resource::FromRemoteFile( const Entry& remote )
|
||||||
// remote checksum unknown, assume the file is not changed in remote
|
// remote checksum unknown, assume the file is not changed in remote
|
||||||
else if ( remote.MD5().empty() )
|
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 ) ;
|
Path(), log::verbose ) ;
|
||||||
m_state = sync ;
|
m_state = sync ;
|
||||||
}
|
}
|
||||||
|
|
|
@ -115,6 +115,12 @@ void Log(
|
||||||
LogBase::Inst()->Log( log::Fmt(fmt) % p1 % p2 % p3 % p4, s ) ;
|
LogBase::Inst()->Log( log::Fmt(fmt) % p1 % p2 % p3 % p4, s ) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <typename P1, typename P2, typename P3, typename P4, typename P5>
|
||||||
|
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 ) ;
|
void Trace( const std::string& str ) ;
|
||||||
|
|
||||||
template <typename P1>
|
template <typename P1>
|
||||||
|
|
Loading…
Reference in New Issue