Log client ID when removing client.

This commit is contained in:
Ruslan Vakilov 2024-09-22 21:19:53 +02:00
parent 27c6447c74
commit 510ba54a21

View file

@ -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"})
}
}