1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-21 00:45:18 +00:00

Add verbose mode configuration option

This commit is contained in:
2021-02-06 16:38:51 +01:00
parent 25d83db840
commit bc8cda78ae
3 changed files with 8 additions and 2 deletions

View File

@ -355,7 +355,7 @@ impl StreamHandler<Result<ws::Message, ws::ProtocolError>> for WsSession {
Ok(msg) => msg,
};
if conf().database.log_all_queries
if conf().verbose_mode
{
println!("USER WEBSOCKET MESSAGE: {:?}", msg);
}
@ -376,7 +376,7 @@ impl StreamHandler<Result<ws::Message, ws::ProtocolError>> for WsSession {
let response = serde_json::to_string(&msg)
.unwrap_or("Failed to serialize".to_string());
if conf().database.log_all_queries {
if conf().verbose_mode {
println!("USER WEBSOCKET RESPONSE {}", response);
}