summaryrefslogtreecommitdiff
path: root/rust/src/apachelog.rs
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2016-12-15 20:50:23 +0100
committerYves Fischer <yvesf-git@xapek.org>2016-12-17 15:10:46 +0100
commit6ec284ba70e736bc24523b279303cee46b06071a (patch)
tree5ab18399d663b722bdc312430f37c39a49d9a810 /rust/src/apachelog.rs
parent285f0b800d9428c19530a17e25be069e38e2542d (diff)
downloadauth-xmppmessage-6ec284ba70e736bc24523b279303cee46b06071a.tar.gz
auth-xmppmessage-6ec284ba70e736bc24523b279303cee46b06071a.zip
Replace switch -u with header X-Allowed-Jid
Diffstat (limited to 'rust/src/apachelog.rs')
-rw-r--r--rust/src/apachelog.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/apachelog.rs b/rust/src/apachelog.rs
index f502d99..4ab03ea 100644
--- a/rust/src/apachelog.rs
+++ b/rust/src/apachelog.rs
@@ -28,13 +28,13 @@ impl LogEntry {
}
pub fn done<R>(&mut self, _: &Response<R>) where R: Read {
- self.status = 0; // not accessible
+ self.status = 0; // statuscode is not accessible :(
self.print();
}
#[inline(always)]
fn print(&self) {
- println!("{} - {} - [{}] \"{}\" {} {}",
+ info!("{} - {} - [{}] \"{}\" {} {}",
self.remote_ip_address,
self.remote_user,
time::strftime("%d/%b/%Y %T %z", &self.time).unwrap(),