From a862cd6c7f3dbeeda1e88b101419616085ffa24b Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sat, 17 Dec 2016 14:59:22 +0100 Subject: extend tests and workaround for status_code logging --- rust/src/apachelog.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rust/src/apachelog.rs') 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(&mut self, _: &Response) where R: Read { - self.status = 0; // statuscode is not accessible :( + pub fn done(&mut self, _: &Response, status_code: u16) where R: Read { + self.status = status_code; // request.statuscode is not accessible :( self.print(); } -- cgit v1.2.1