mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-26 22:11:46 +00:00
log: log_append_logfile() add new error path
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
bfcedc7ea0
commit
a9d4137983
@ -311,7 +311,7 @@ static int log_append_logfile(const struct lxc_log_appender *appender,
|
||||
return 0;
|
||||
|
||||
if (lxc_unix_epoch_to_utc(date_time, LXC_LOG_TIME_SIZE, &event->timestamp) < 0)
|
||||
return 0;
|
||||
return -1;
|
||||
|
||||
n = snprintf(buffer, sizeof(buffer),
|
||||
"%s%s%s %s %-8s %s - %s:%s:%d - ",
|
||||
|
Loading…
Reference in New Issue
Block a user