added grive version and build time in log file

pull/40/head
Nestal Wan 2012-06-09 14:43:04 +08:00
parent e259478fb3
commit 6aaf84aae5
2 changed files with 5 additions and 1 deletions

View File

@ -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 ;
}

View File

@ -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