mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
log_day_change was never printed in logs.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@629 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
9a2b8e95ed
commit
776895eeac
@ -170,17 +170,19 @@ void log_write_rec(LOG_REC *log, const char *str)
|
|||||||
day = tm->tm_mday;
|
day = tm->tm_mday;
|
||||||
|
|
||||||
tm = localtime(&log->last);
|
tm = localtime(&log->last);
|
||||||
|
day -= tm->tm_mday; /* tm breaks in log_rotate_check() .. */
|
||||||
if (tm->tm_hour != hour) {
|
if (tm->tm_hour != hour) {
|
||||||
/* hour changed, check if we need to rotate log file */
|
/* hour changed, check if we need to rotate log file */
|
||||||
log_rotate_check(log);
|
log_rotate_check(log);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tm->tm_mday != day) {
|
if (day != 0) {
|
||||||
/* day changed */
|
/* day changed */
|
||||||
log_write_timestamp(log->handle,
|
log_write_timestamp(log->handle,
|
||||||
settings_get_str("log_day_changed"),
|
settings_get_str("log_day_changed"),
|
||||||
"\n", now);
|
"\n", now);
|
||||||
}
|
}
|
||||||
|
|
||||||
log->last = now;
|
log->last = now;
|
||||||
|
|
||||||
log_write_timestamp(log->handle, log_timestamp, str, now);
|
log_write_timestamp(log->handle, log_timestamp, str, now);
|
||||||
|
Loading…
Reference in New Issue
Block a user