diff options
Diffstat (limited to 'crates/shirabe/src/io')
| -rw-r--r-- | crates/shirabe/src/io/base_io.rs | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/crates/shirabe/src/io/base_io.rs b/crates/shirabe/src/io/base_io.rs index 4bc34ed6..0f3fd4e8 100644 --- a/crates/shirabe/src/io/base_io.rs +++ b/crates/shirabe/src/io/base_io.rs @@ -4,7 +4,6 @@ use crate::config::Config; use crate::io::IOInterface; use crate::io::io_interface; use crate::util::ProcessExecutor; -use crate::util::Silencer; use indexmap::IndexMap; use shirabe_php_shim::{ JSON_INVALID_UTF8_IGNORE, JSON_UNESCAPED_SLASHES, JSON_UNESCAPED_UNICODE, PhpMixed, @@ -435,14 +434,11 @@ pub trait BaseIO: IOInterface { let mut message_str = message.to_string(); if !context.is_empty() { - let json: anyhow::Result<Option<String>> = Silencer::call(|| { - Ok(json_encode_ex( - &PhpMixed::Array(log_context(context)), - JSON_INVALID_UTF8_IGNORE | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE, - ) - .ok()) - }); - if let Ok(Some(json_str)) = json { + let json = json_encode_ex( + &PhpMixed::Array(log_context(context)), + JSON_INVALID_UTF8_IGNORE | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE, + ); + if let Ok(json_str) = json { message_str += " "; message_str += &json_str; } |
