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:
1 parent
0759fce433
commit
ad84c06699
1 file changed
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user