From 85c619af67f5f13805f069b3dfb1fbd8d8523f20 Mon Sep 17 00:00:00 2001 From: Luca Succi Date: Mon, 18 Mar 2024 16:55:12 +0100 Subject: [PATCH] Set logline as error and make it a structured log --- src/grisp_io_log_server.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/grisp_io_log_server.erl b/src/grisp_io_log_server.erl index 3919aa6..ceb399d 100644 --- a/src/grisp_io_log_server.erl +++ b/src/grisp_io_log_server.erl @@ -60,5 +60,5 @@ send_logs_chunk({Events, Dropped}) -> {ok, #{seq := Seq, dropped := ServerDropped}} -> grisp_io_logger_bin:sync(Seq, ServerDropped); E -> - ?LOG_WARNING("Error sending logs = ~p\n",[E]) + ?LOG_ERROR(#{event => send_logs, data => E}) end.