A bunch of fixes

This commit is contained in:
blankhex committed 2026-10-16 11:34:34 +03:00
1 parent 65534ecfd5
commit 2a4e03e611
20 files changed
+146 -160

No files matched your search

-4
View File
@@ -28,8 +28,6 @@ type Logger struct {
logger *stdlog.Logger
}
// New returns a Logger that writes to the given output. Messages below the
// configured level are silently dropped.
func New(level Level, output io.Writer) *Logger {
return &Logger{
level: level,
@@ -62,8 +60,6 @@ func (l *Logger) log(level Level, format string, args ...any) {
l.logger.Printf("%s %s", label, msg)
}
// ParseLevel converts a string to a Level. Input is case-insensitive.
// Valid values: "debug", "info", "warn", "error".
func ParseLevel(s string) (Level, error) {
switch strings.ToLower(strings.TrimSpace(s)) {
case "debug":