mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-23 07:27:46 +00:00
Add log_level to config, more ACL debug log
This commit is contained in:
7
acls.go
7
acls.go
@@ -34,6 +34,11 @@ const (
|
||||
|
||||
// LoadACLPolicy loads the ACL policy from the specify path, and generates the ACL rules.
|
||||
func (h *Headscale) LoadACLPolicy(path string) error {
|
||||
log.Debug().
|
||||
Str("func", "LoadACLPolicy").
|
||||
Str("path", path).
|
||||
Msg("Loading ACL policy from path")
|
||||
|
||||
policyFile, err := os.Open(path)
|
||||
if err != nil {
|
||||
return err
|
||||
@@ -67,6 +72,8 @@ func (h *Headscale) LoadACLPolicy(path string) error {
|
||||
}
|
||||
h.aclRules = rules
|
||||
|
||||
log.Trace().Interface("ACL", rules).Msg("ACL rules generated")
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user