From eda6e560c369ea39e286cd1d916bc7e369fd7e03 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Mon, 2 Aug 2021 22:51:50 +0100 Subject: [PATCH] debug logging --- api.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api.go b/api.go index 088c337..97ec4d4 100644 --- a/api.go +++ b/api.go @@ -445,6 +445,7 @@ func (h *Headscale) handleAuthKey(c *gin.Context, db *gorm.DB, idKey wgkey.Key, log.Println(err) return } + log.Printf("Assigning %s to %s", ip, m.Name) m.AuthKeyID = uint(pak.ID) m.IPAddress = ip.String()