Skip to content

Commit ada009a

Browse files
ysyneuclaude
andcommitted
fix: replace non-existent log package with stdlib slog
The log package was imported but never existed in the repo, causing golangci-lint to fail with "no export data" error. Use slog.NewTextHandler from stdlib instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2e53fe0 commit ada009a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

cmd/main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import (
1313

1414
"github.com/spf13/cobra"
1515

16-
"github.com/flashcatcloud/flashduty-runner/log"
1716
"github.com/flashcatcloud/flashduty-runner/permission"
1817
"github.com/flashcatcloud/flashduty-runner/workspace"
1918
"github.com/flashcatcloud/flashduty-runner/ws"
@@ -244,7 +243,7 @@ func runRunner() error {
244243
func setupLogging(levelStr string) {
245244
level := parseLogLevel(levelStr)
246245
opts := &slog.HandlerOptions{Level: level}
247-
handler := log.NewOrderedTextHandler(os.Stdout, opts)
246+
handler := slog.NewTextHandler(os.Stdout, opts)
248247
slog.SetDefault(slog.New(handler))
249248
}
250249

0 commit comments

Comments
 (0)