Remove logger and replace it with a library
This commit is contained in:
4
main.go
4
main.go
@@ -13,7 +13,7 @@ import (
|
||||
|
||||
"github.com/go-git/go-git/v5"
|
||||
|
||||
"cook/logger"
|
||||
logger "git.site.quack-lab.dev/dave/cylogger"
|
||||
)
|
||||
|
||||
type GlobalStats struct {
|
||||
@@ -259,7 +259,7 @@ func RunOtherCommands(file string, fileDataStr string, association utils.FileCom
|
||||
modifications := []utils.ReplaceCommand{}
|
||||
for _, command := range association.Commands {
|
||||
// Use command-specific logger if available, otherwise fall back to default logger
|
||||
cmdLogger := logger.DefaultLogger
|
||||
cmdLogger := logger.Default
|
||||
if cmdLog, ok := commandLoggers[command.Name]; ok {
|
||||
cmdLogger = cmdLog
|
||||
}
|
||||
|
Reference in New Issue
Block a user