Skip to content

Commit

Permalink
include go error in metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
emberian authored and O1ahmad committed Aug 3, 2020
1 parent bb9af80 commit e28e94e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/coda_net2/coda_net2.ml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ module Go_log = struct
~module_:(sprintf "Libp2p_helper.Go.%s" r.module_)
~location:"(not tracked)")
; message= r.msg
; metadata= String.Map.empty
; metadata=
( if r.error <> "" then
String.Map.singleton "go_error" (`String r.error)
else String.Map.empty )
; event_id= None }
end

Expand Down

0 comments on commit e28e94e

Please sign in to comment.