src/api2/admin/datastore/h2upload.rs: do not log client address

This commit is contained in:
Dietmar Maurer 2019-05-08 08:15:55 +02:00
parent e3a44552ee
commit 4e3da4b366
1 changed files with 1 additions and 2 deletions

View File

@ -78,14 +78,13 @@ impl BackupService {
if !status.is_success() {
let reason = status.canonical_reason().unwrap_or("unknown reason");
let client = "unknown"; // fixme: howto get peer_addr ?
let mut message = "request failed";
if let Some(data) = resp.extensions().get::<ErrorMessageExtension>() {
message = &data.0;
}
worker.log(format!("{} {}: {} {}: [client {}] {}", method.as_str(), path, status.as_str(), reason, client, message));
worker.log(format!("{} {}: {} {}: {}", method.as_str(), path, status.as_str(), reason, message));
}
}
}