Skip to content
This repository was archived by the owner on Aug 14, 2024. It is now read-only.

Commit 07c4cb7

Browse files
committed
Fix double prefix
1 parent f79baf7 commit 07c4cb7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

internal/lg/lg.go

-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
package lg
22

33
import (
4-
"fmt"
54
"log"
65
"os"
76
)
87

98
var logger = log.New(os.Stdout, "", log.LstdFlags)
109

1110
func printf(prefix string, format string, v ...interface{}) {
12-
logger.SetPrefix(fmt.Sprintf("%-7s", prefix))
1311
v = append([]interface{}{prefix}, v...)
1412
logger.Printf("%-7s"+format, v...)
1513
}

0 commit comments

Comments
 (0)