File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -28,16 +28,16 @@ func Example_stderr() {
28
28
})),
29
29
)
30
30
31
- // test_test.go:38 : Sep 06 14:04:33.028 [INFO]: my_message_here
31
+ // test_test.go:17 : Sep 06 14:33:34.677 [INFO] (test) : my_message_here
32
32
// field_name: something or the other
33
33
// some_map:
34
34
// nested_fields: wowow
35
35
// error:
36
36
// - msg: wrap2
37
- // loc: /Users/nhooyr/src/cdr/slog/test_test.go:43
37
+ // loc: /Users/nhooyr/src/cdr/slog/test_test.go:22
38
38
// fun: go.coder.com/slog_test.TestExampleStderr
39
39
// - msg: wrap1
40
- // loc: /Users/nhooyr/src/cdr/slog/test_test.go:44
40
+ // loc: /Users/nhooyr/src/cdr/slog/test_test.go:23
41
41
// fun: go.coder.com/slog_test.TestExampleStderr
42
42
// - EOF
43
43
// name: wow
@@ -66,16 +66,16 @@ func Example_test() {
66
66
)
67
67
68
68
// --- PASS: TestExampleTest (0.00s)
69
- // test_test.go:16 : Sep 06 14:04:08.947 [INFO]: my_message_here
69
+ // test_test.go:38 : Sep 06 14:33:52.628 [INFO] (test) : my_message_here
70
70
// field_name: something or the other
71
71
// some_map:
72
72
// nested_fields: wowow
73
73
// error:
74
74
// - msg: wrap2
75
- // loc: /Users/nhooyr/src/cdr/slog/test_test.go:21
75
+ // loc: /Users/nhooyr/src/cdr/slog/test_test.go:43
76
76
// fun: go.coder.com/slog_test.TestExampleTest
77
77
// - msg: wrap1
78
- // loc: /Users/nhooyr/src/cdr/slog/test_test.go:22
78
+ // loc: /Users/nhooyr/src/cdr/slog/test_test.go:44
79
79
// fun: go.coder.com/slog_test.TestExampleTest
80
80
// - EOF
81
81
// name: wow
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ func parseFields(fields []Field) parsedFields {
30
30
31
31
for _ , f := range fields {
32
32
if s , ok := f .(componentField ); ok {
33
- l .appendComponent (string (s ))
33
+ l = l .appendComponent (string (s ))
34
34
continue
35
35
}
36
36
l = l .appendField (f .LogKey (), f .LogValue ())
You can’t perform that action at this time.
0 commit comments