From e8088f85d0092bfcecdac5f07707e77b14099934 Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Sun, 29 Nov 2020 12:35:02 -0700 Subject: [PATCH] Lets not try to log the server ID twice --- router/router_transfer.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/router/router_transfer.go b/router/router_transfer.go index 46181b4..64092f9 100644 --- a/router/router_transfer.go +++ b/router/router_transfer.go @@ -242,11 +242,11 @@ func postTransfer(c *gin.Context) { "error": err, }).Warn("failed to delete transfer archive") } else { - l.WithField("server", serverID).Debug("deleted temporary transfer archive successfully") + l.Debug("deleted temporary transfer archive successfully") } }() - l.WithField("server", serverID).Debug("server archive downloaded, computing checksum...") + l.Debug("server archive downloaded, computing checksum...") // Open the archive file for computing a checksum. file, err = os.Open(archivePath) @@ -325,7 +325,7 @@ func postTransfer(c *gin.Context) { return } - l.WithField("server", serverID).Info("successfully notified panel of transfer success") + l.Info("successfully notified panel of transfer success") }(buf.Bytes()) c.Status(http.StatusAccepted)