TUN-7126: Add Management logger io.Writer

This commit is contained in:
Devin Carr
2023-03-30 14:12:00 -07:00
parent bbc8d9431b
commit 39ed5dc182
7 changed files with 290 additions and 7 deletions

View File

@@ -401,7 +401,7 @@ func StartServer(
localRules := []ingress.Rule{}
if features.Contains(features.FeatureManagementLogs) {
mgmt := management.New(c.String("management-hostname"))
mgmt := management.New(c.String("management-hostname"), logger.ManagementLogger.Log, logger.ManagementLogger)
localRules = []ingress.Rule{ingress.NewManagementRule(mgmt)}
}
orchestrator, err := orchestration.NewOrchestrator(ctx, orchestratorConfig, tunnelConfig.Tags, localRules, tunnelConfig.Log)