Remove extra compiled-on stamp.
Don't use __TIMESTAMP__; that gives the last compile time of RageLog.cpp, not the last build time. Put the current time in info, instead of trace, so we can compare times when we receive more than one log, to make sure they really match up (we occasionally get crashinfo.txt from a previous crash, in which case only info.txt and log.txt are relevant).
This commit is contained in:
@@ -108,8 +108,8 @@ RageLog::RageLog()
|
||||
|
||||
this->Info( PRODUCT_NAME_VER );
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
this->Info( "Last compiled on %s.", __TIMESTAMP__ );
|
||||
#if defined(HAVE_VERSION_INFO)
|
||||
this->Info( "Compiled %s (build %lu)", version_time, version_num );
|
||||
#endif
|
||||
|
||||
time_t cur_time;
|
||||
@@ -118,14 +118,10 @@ RageLog::RageLog()
|
||||
|
||||
if ( now )
|
||||
{
|
||||
this->Trace( "Log starting %.4d-%.2d-%.2d %.2d:%.2d:%.2d",
|
||||
this->Info( "Log starting %.4d-%.2d-%.2d %.2d:%.2d:%.2d",
|
||||
1900+now->tm_year, now->tm_mon, now->tm_mday, now->tm_hour, now->tm_min, now->tm_sec );
|
||||
this->Trace( " " );
|
||||
}
|
||||
|
||||
#if defined(HAVE_VERSION_INFO)
|
||||
this->Info("Compiled %s (build %lu)", version_time, version_num);
|
||||
#endif
|
||||
}
|
||||
|
||||
RageLog::~RageLog()
|
||||
|
||||
Reference in New Issue
Block a user