mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-10 18:41:40 +00:00
wgengine/wglog: add a prefix for all wireguard logs
Fixes #7041 Signed-off-by: James Tucker <james@tailscale.com>
This commit is contained in:

committed by
James Tucker

parent
06fff461dc
commit
e002260b62
@@ -22,9 +22,9 @@ func TestLogger(t *testing.T) {
|
||||
want string
|
||||
omit bool
|
||||
}{
|
||||
{"hi", nil, "hi", false},
|
||||
{"hi", nil, "wg: hi", false},
|
||||
{"Routine: starting", nil, "", true},
|
||||
{"%v says it misses you", []any{stringer("peer(IMTB…r7lM)")}, "[IMTBr] says it misses you", false},
|
||||
{"%v says it misses you", []any{stringer("peer(IMTB…r7lM)")}, "wg: [IMTBr] says it misses you", false},
|
||||
}
|
||||
|
||||
type log struct {
|
||||
|
Reference in New Issue
Block a user