fix(masque): log tunnel dial failure at WARN, not DEBUG

A failed dial is an actionable error and should be visible where the success
(tunnel established, INFO) is — the LxBox core-log forwarder only surfaces
INFO+, so a DEBUG failure was invisible on-device. WARN makes established/
failed a symmetric, forwardable pair. The detailed dial phases (establishing,
udp-socket-up) stay DEBUG.
This commit is contained in:
Leadaxe committed 2026-07-02 11:17:59 +03:00
1 parent 0759fce433
commit ad84c06699
1 file changed
+1 -1
+1 -1
View File
@@ -262,7 +262,7 @@ func (o *Outbound) ensureSession(ctx context.Context) (*session, error) {
closer, ipConn, err = o.connectH3(ctx)
}
if err != nil {
o.logger.DebugContext(ctx, "masque: ", o.network, " tunnel to ", o.server, " failed: ", err)
o.logger.WarnContext(ctx, "masque: ", o.network, " tunnel to ", o.server, " failed: ", err)
_ = device.Close()
return nil, err
}