From 6439d9336b63602d66ffda892fba5a6fe6181dc0 Mon Sep 17 00:00:00 2001 From: Daniel Ponte Date: Mon, 29 Jul 2024 15:59:42 -0400 Subject: [PATCH] log call ingest, TODO: remove request log --- pkg/gordio/ingestors/http.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/gordio/ingestors/http.go b/pkg/gordio/ingestors/http.go index f3c158a..d52a7bc 100644 --- a/pkg/gordio/ingestors/http.go +++ b/pkg/gordio/ingestors/http.go @@ -108,9 +108,9 @@ func (h *HTTPIngestor) routeCallUpload(w http.ResponseWriter, r *http.Request) { return } - w.Write([]byte("Call imported successfully.")) + log.Info().Str("id", dbCall.String()).Int("system", call.System).Int("tgid", call.Talkgroup).Msg("ingested") - _ = dbCall + w.Write([]byte("Call imported successfully.")) } func (car *callUploadRequest) fill(r *http.Request) error {