mirror of https://github.com/vitalif/grive2
added grive version and build time in log file
parent
e259478fb3
commit
6aaf84aae5
|
@ -106,6 +106,10 @@ int Main( int argc, char **argv )
|
|||
file_log->Enable( log::warning ) ;
|
||||
file_log->Enable( log::error ) ;
|
||||
file_log->Enable( log::critical ) ;
|
||||
|
||||
// log grive version to log file
|
||||
file_log->Log( log::Fmt("grive version " VERSION " " __DATE__ " " __TIME__), log::verbose ) ;
|
||||
|
||||
comp_log->Add( file_log ) ;
|
||||
break ;
|
||||
}
|
||||
|
|
|
@ -49,7 +49,7 @@ State::State( const fs::path& filename, const Json& options ) :
|
|||
if ( options.Get("force", force) && force.Bool() )
|
||||
m_last_sync = DateTime() ;
|
||||
|
||||
Log( "last sync time: %1%", m_last_sync, log::info ) ;
|
||||
Log( "last sync time: %1%", m_last_sync, log::verbose ) ;
|
||||
}
|
||||
|
||||
/// Synchronize local directory. Build up the resource tree from files and folders
|
||||
|
|
Loading…
Reference in New Issue