fixed the default time format in the log output
This commit is contained in:
parent
09ccec105b
commit
21e8fae43d
@ -701,7 +701,7 @@ static void log_write (moo_t* moo, unsigned int mask, const moo_ooch_t* msg, moo
|
|||||||
if (tslen == 0)
|
if (tslen == 0)
|
||||||
{
|
{
|
||||||
strcpy (ts, "0000-00-00 00:00:00 ");
|
strcpy (ts, "0000-00-00 00:00:00 ");
|
||||||
tslen = 19;
|
tslen = 20;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
tmp = localtime_r (&now, &tm);
|
tmp = localtime_r (&now, &tm);
|
||||||
@ -713,7 +713,7 @@ static void log_write (moo_t* moo, unsigned int mask, const moo_ooch_t* msg, moo
|
|||||||
if (tslen == 0)
|
if (tslen == 0)
|
||||||
{
|
{
|
||||||
strcpy (ts, "0000-00-00 00:00:00 +0000 ");
|
strcpy (ts, "0000-00-00 00:00:00 +0000 ");
|
||||||
tslen = 25;
|
tslen = 26;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
write_log (moo, logfd, ts, tslen);
|
write_log (moo, logfd, ts, tslen);
|
||||||
|
Loading…
Reference in New Issue
Block a user