add url to error log

This commit is contained in:
Corentin Leruth 2024-09-18 16:56:51 +02:00 committed by Simon Cruanes
parent c372c458c7
commit d6d36ee73d

View file

@ -190,7 +190,8 @@ end = struct
spf "(could not decode status)\nraw bytes: %s" (str_to_hex body)
in
Printf.eprintf
"opentelemetry: error while sending:\n code=%d\n %s\n%!" code body
"opentelemetry: error while sending data to %s:\n code=%d\n %s\n%!"
url code body
);
()
| exception Sys.Break ->