mirror of
https://github.com/c-cube/linol.git
synced 2026-01-21 17:06:40 -05:00
some logging
This commit is contained in:
parent
8e37c17733
commit
754ecac307
1 changed files with 2 additions and 0 deletions
|
|
@ -167,6 +167,7 @@ module Make(IO : IO)
|
|||
IO.catch f
|
||||
(fun e ->
|
||||
let message = spf "%s\n%s" (Printexc.to_string e) (Printexc.get_backtrace()) in
|
||||
Log.err (fun k->k "error: %s" msg);
|
||||
let r = Jsonrpc.Response.error id
|
||||
(Jsonrpc.Response.Error.make
|
||||
~code:Jsonrpc.Response.Error.Code.InternalError
|
||||
|
|
@ -219,6 +220,7 @@ module Make(IO : IO)
|
|||
end)
|
||||
(fun e ->
|
||||
let message = spf "%s\n%s" (Printexc.to_string e) (Printexc.get_backtrace()) in
|
||||
Log.err (fun k->k "error: %s" msg);
|
||||
let r =
|
||||
Jsonrpc.Response.error id
|
||||
(Jsonrpc.Response.Error.make
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue