summaryrefslogtreecommitdiff
path: root/rust/src/apachelog.rs
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2016-12-17 14:59:22 +0100
committerYves Fischer <yvesf-git@xapek.org>2016-12-17 15:10:46 +0100
commita862cd6c7f3dbeeda1e88b101419616085ffa24b (patch)
treed5e861de59fead7b3994904376f074d6f686658b /rust/src/apachelog.rs
parentb3acad41869e2ce05d53f64c7446d797ed15af50 (diff)
downloadauth-xmppmessage-a862cd6c7f3dbeeda1e88b101419616085ffa24b.tar.gz
auth-xmppmessage-a862cd6c7f3dbeeda1e88b101419616085ffa24b.zip
extend tests and workaround for status_code logging
Diffstat (limited to 'rust/src/apachelog.rs')
-rw-r--r--rust/src/apachelog.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/rust/src/apachelog.rs b/rust/src/apachelog.rs
index 4ab03ea..fb5d1a6 100644
--- a/rust/src/apachelog.rs
+++ b/rust/src/apachelog.rs
@@ -10,7 +10,7 @@ pub struct LogEntry {
remote_user: String,
request_path: String,
time: time::Tm,
- status: u32,
+ status: u16,
response_size: u32,
}
@@ -27,8 +27,8 @@ impl LogEntry {
return entry
}
- pub fn done<R>(&mut self, _: &Response<R>) where R: Read {
- self.status = 0; // statuscode is not accessible :(
+ pub fn done<R>(&mut self, _: &Response<R>, status_code: u16) where R: Read {
+ self.status = status_code; // request.statuscode is not accessible :(
self.print();
}