centralize module logger creation

This commit is contained in:
Joel Wetzell
2025-12-26 09:51:55 -06:00
parent ff426994e4
commit f1dff33704
18 changed files with 24 additions and 19 deletions

View File

@@ -87,7 +87,7 @@ func init() {
}
userAgentString = specificTransportString
}
return &SIPCallServer{config: config, ctx: ctx, router: router, IP: ipString, Port: int(portNum), Transport: transportString, UserAgent: userAgentString, logger: slog.Default().With("component", "module", "id", config.Id)}, nil
return &SIPCallServer{config: config, ctx: ctx, router: router, IP: ipString, Port: int(portNum), Transport: transportString, UserAgent: userAgentString, logger: CreateLogger(config)}, nil
},
})
}