Skip to content
Snippets Groups Projects
Commit 034fa71a authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Remove redundant timestamp from "End of preexisting log entry" log message

Most logs sysops are looking at already have a date/timestamp for each
message, so this one ended up with 3 date/timestamps in a single line.
parent d8794e1a
No related branches found
No related tags found
No related merge requests found
......@@ -3381,7 +3381,6 @@ bool sbbs_t::init()
{
char str[MAX_PATH+1];
char tmp[128];
char tmp2[128];
int result;
int i,j,k,l;
node_t node;
......@@ -3502,16 +3501,10 @@ bool sbbs_t::init()
if(filelength(fileno(logfile_fp))) {
log(crlf);
now=time(NULL);
struct tm tm;
localtime_r(&now,&tm);
time_t ftime = fdate(str);
safe_snprintf(str,sizeof(str),"%s %s %s %02d %u "
safe_snprintf(str,sizeof(str),
"End of preexisting log entry (possible crash on %.24s)"
,hhmmtostr(&cfg,&tm,tmp)
,wday[tm.tm_wday]
,mon[tm.tm_mon],tm.tm_mday,tm.tm_year+1900
,ctime_r(&ftime, tmp2));
,ctime_r(&ftime, tmp));
logline(LOG_NOTICE,"L!",str);
log(crlf);
catsyslog(TRUE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment