MCPcopy
hub / github.com/netbirdio/netbird / closeWithLog

Function closeWithLog

client/wasm/internal/ssh/client.go:24–30  ·  view source on GitHub ↗
(c io.Closer, resource string)

Source from the content-addressed store, hash-verified

22)
23
24func closeWithLog(c io.Closer, resource string) {
25 if c != nil {
26 if err := c.Close(); err != nil {
27 logrus.Debugf("Failed to close %s: %v", resource, err)
28 }
29 }
30}
31
32type Client struct {
33 nbClient *netbird.Client

Callers 3

ConnectMethod · 0.85
StartSessionMethod · 0.85
CloseMethod · 0.85

Calls 2

CloseMethod · 0.65
DebugfMethod · 0.65

Tested by

no test coverage detected