mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-17 19:39:20 +00:00
Implemented proper logging, with support for file logging, timestamp and syslog (this last one is untested)
This commit is contained in:
parent
259a2f2982
commit
2fde4e6933
13 changed files with 146 additions and 29 deletions
|
|
@ -169,7 +169,7 @@ impl Handler for WSHandler {
|
|||
}
|
||||
|
||||
fn on_message(&mut self, msg: Message) -> ws::Result<()> {
|
||||
println!("Server got message '{}'. ", msg);
|
||||
info!("Server got message '{}'. ", msg);
|
||||
|
||||
if let Message::Text(text) = msg.clone() {
|
||||
let json = &text[..text.len() - 1]; // Remove last char
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue