chore: remove deprecated setupDaemonLoggerLegacy function (bd-2dwo)
The function was marked for removal once all callers migrated to the new setupDaemonLogger signature with jsonFormat and level parameters. Audit confirmed no remaining callers - safe to remove. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -127,12 +127,6 @@ func setupDaemonLogger(logPath string, jsonFormat bool, level slog.Level) (*lumb
|
||||
return logF, logger
|
||||
}
|
||||
|
||||
// setupDaemonLoggerLegacy is the old signature for backward compatibility during migration.
|
||||
// TODO(bd-2dwo): Remove this once all callers are updated to use the new signature.
|
||||
func setupDaemonLoggerLegacy(logPath string) (*lumberjack.Logger, daemonLogger) {
|
||||
return setupDaemonLogger(logPath, false, slog.LevelInfo)
|
||||
}
|
||||
|
||||
// SetupStderrLogger creates a logger that writes to stderr only (no file).
|
||||
// Useful for foreground mode or testing.
|
||||
func SetupStderrLogger(jsonFormat bool, level slog.Level) daemonLogger {
|
||||
|
||||
Reference in New Issue
Block a user