Code quality: fmt.Println/Printf debug output in production code #40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Locations
internal/modules/handlers.go:16-101� Multiplefmt.Println()calls for debug logginginternal/ui/components.go:269, 275, 287�fmt.Printf()in the drag-and-drop handlerImpact
Pollutes stdout with debug noise in production builds. Should use the
loggingpackage with an appropriate category (logging.CatUI,logging.CatSystem, etc.) at Debug level so output is gated by the log level setting.Fix
Replace all
fmt.Println/fmt.Printfin these files withlogging.Debug(logging.CatXxx, ...)calls.