diff options
Diffstat (limited to 'rust/src/apachelog.rs')
-rw-r--r-- | rust/src/apachelog.rs | 6 |
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(); } |