debug logging

This commit is contained in:
Kristoffer Dalby 2021-08-02 22:51:50 +01:00
parent 95de823b72
commit eda6e560c3
No known key found for this signature in database
GPG key ID: 09F62DC067465735

1
api.go
View file

@ -445,6 +445,7 @@ func (h *Headscale) handleAuthKey(c *gin.Context, db *gorm.DB, idKey wgkey.Key,
log.Println(err) log.Println(err)
return return
} }
log.Printf("Assigning %s to %s", ip, m.Name)
m.AuthKeyID = uint(pak.ID) m.AuthKeyID = uint(pak.ID)
m.IPAddress = ip.String() m.IPAddress = ip.String()