mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-20 01:06:45 +00:00
Allow to set firewall log level
This commit is contained in:
@@ -488,7 +488,15 @@ func (s *Server) SetLogLevel(_ context.Context, req *proto.SetLogLevelRequest) (
|
||||
}
|
||||
|
||||
log.SetLevel(level)
|
||||
|
||||
if s.connectClient != nil &&
|
||||
s.connectClient.Engine() != nil &&
|
||||
s.connectClient.Engine().GetFirewallManager() != nil {
|
||||
s.connectClient.Engine().GetFirewallManager().SetLogLevel(level)
|
||||
}
|
||||
|
||||
log.Infof("Log level set to %s", level.String())
|
||||
|
||||
return &proto.SetLogLevelResponse{}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user