Skip to content

Commit bc72350

Browse files
committed
chore(ipc): use tracing for error log
1 parent 488a55a commit bc72350

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/shared/ipc/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ mod response;
44

55
use event::IpcEvent;
66
use response::IpcMessageResponse;
7+
use tracing::error;
78

89
const VERSION: &str = env!("CARGO_PKG_VERSION");
910
const TRANSPORT_NAME: &str = "transport";
1011

1112
pub fn parse_request(data: &str) -> Result<IpcEvent, ()> {
12-
IpcEvent::try_from(data).map_err(|e| eprintln!("{e}"))
13+
IpcEvent::try_from(data).map_err(|e| error!("{e}"))
1314
}
1415

1516
pub fn create_response(event: IpcEvent) -> String {

0 commit comments

Comments
 (0)