mirror of
https://github.com/chatmail/core.git
synced 2026-04-22 07:56:29 +03:00
Use new logging in context and log macros
This adopts the new logging functionality in the Context and makes the existing macros use it. The main thing to note is that the logger is in an RwLock, which serialises all threads on writing logs. Not doing that would need an immutable logger object, which would turn into doing many more syscalls for each log write and possibly need a per-thread logfile.
This commit is contained in:
@@ -22,7 +22,7 @@ extern crate jetscii;
|
||||
extern crate debug_stub_derive;
|
||||
|
||||
#[macro_use]
|
||||
mod log;
|
||||
pub mod log;
|
||||
#[macro_use]
|
||||
pub mod error;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user