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:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user