Skip to content

Commit 831b001

Browse files
committed
remvoe category from FormatterArgs for #99
1 parent 8b90f55 commit 831b001

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ jobs:
4141
- uses: actions/checkout@v4
4242
- uses: actions/setup-go@v5
4343
with:
44-
go-version: '1.22'
44+
go-version: '1.24'
4545
- name: golangci-lint
4646
uses: golangci/golangci-lint-action@v7
4747
with:
48-
version: v1.60
48+
version: v2.0

formatter.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ type FormatterArgs struct {
1717
Goid string // "123"
1818
Stack string // "<stack string>"
1919
Message string // "a structure message"
20-
Category string // "cat1"
2120
KeyValues []struct {
2221
Key string // "foo"
2322
Value string // "bar"
@@ -53,8 +52,6 @@ func formatterArgsPos(key string) (pos int) {
5352
pos = 6
5453
case "message", "msg":
5554
pos = 7
56-
case "category":
57-
pos = 8
5855
}
5956
return
6057
}

formatter_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ func TestFormatterArgsParse(t *testing.T) {
3535
if args.Level != level {
3636
t.Fatalf("Failed to parse level: %s != %s", args.Level, level)
3737
}
38-
if args.Category != category {
39-
t.Fatalf("Failed to parse category: %s != %s", args.Category, category)
40-
}
4138
if args.Message != msg {
4239
t.Fatalf("Failed to parse messae: %s != %s", args.Message, msg)
4340
}

0 commit comments

Comments
 (0)