log-server: unconditionally enable logging

If users are including the `log-server` crate, then they probably want
logging regardless of what features are enabled.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2020-11-27 13:56:37 +08:00
parent 322051e8c1
commit 2e4b38a2f1

View file

@ -40,9 +40,7 @@ impl XousLoggerBacking {
}
if let Some(ref mut buf) = self.buffer {
buf.clear();
if cfg!(feature="logging") {
write!(buf, "{} - {}", record.level(), record.args()).unwrap();
}
write!(buf, "{} - {}", record.level(), record.args()).unwrap();
buf.lend(self.conn, 1).unwrap();
}
}