Use logger package for wireguard

Former-commit-id: 7dc5cca5f1
This commit is contained in:
Owen
2025-11-18 14:52:02 -05:00
parent a8383f5612
commit 7b28137cf6

View File

@@ -210,7 +210,6 @@ func TunnelProcess(ctx context.Context, config Config, id string, secret string,
var (
interfaceName = config.InterfaceName
loggerLevel = util.ParseLogLevel(config.LogLevel)
)
// Create a new olm client using the provided credentials
@@ -412,7 +411,8 @@ func TunnelProcess(ctx context.Context, config Config, id string, secret string,
// return
// }
dev = device.NewDevice(tdev, sharedBind, device.NewLogger(util.MapToWireGuardLogLevel(loggerLevel), "wireguard: "))
wgLogger := logger.GetLogger().GetWireGuardLogger("wireguard: ")
dev = device.NewDevice(tdev, sharedBind, (*device.Logger)(wgLogger))
// uapiListener, err = uapiListen(interfaceName, fileUAPI)
// if err != nil {