From 510ba54a21cad017f04806a0fa48edab1d96dd87 Mon Sep 17 00:00:00 2001 From: Ruslan Vakilov Date: Sun, 22 Sep 2024 21:19:53 +0200 Subject: [PATCH] Log client ID when removing client. --- handler/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/routes.go b/handler/routes.go index 93be480..92302c8 100644 --- a/handler/routes.go +++ b/handler/routes.go @@ -821,7 +821,7 @@ func RemoveClient(db store.IStore) echo.HandlerFunc { return c.JSON(http.StatusInternalServerError, jsonHTTPResponse{false, "Cannot delete client from database"}) } - log.Infof("Removed wireguard client: %v", client.Name) + log.Infof("Removed wireguard client: %v", client.ID) return c.JSON(http.StatusOK, jsonHTTPResponse{true, "Client removed"}) } }