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 a51caca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion buildkite/src/Command/Libp2pHelperBuild.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let Cmd = ../Lib/Cmds.dhall

let commands : List Cmd.Type =
[
Cmd.run "sudo chown -R nobody src/app/libp2p_helper",
Cmd.run "chown -R nobody src/app/libp2p_helper",
Cmd.runInDocker
Cmd.Docker::{
image = (../Constants/ContainerImages.dhall).codaToolchain,
Expand Down
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 a51caca

Please sign in to comment.