proxy: fix log message for auth log rotation

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-11-09 16:34:03 +01:00
parent 82422c115a
commit 0eb0c4bd63

View File

@ -592,9 +592,9 @@ async fn schedule_task_log_rotate() {
.ok_or_else(|| format_err!("could not get API auth log file names"))?; .ok_or_else(|| format_err!("could not get API auth log file names"))?;
if logrotate.rotate(max_size, None, Some(max_files))? { if logrotate.rotate(max_size, None, Some(max_files))? {
worker.log(format!("API access log was rotated")); worker.log(format!("API authentication log was rotated"));
} else { } else {
worker.log(format!("API access log was not rotated")); worker.log(format!("API authentication log was not rotated"));
} }
Ok(()) Ok(())