Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
janekbaraniewski committed Jul 24, 2023
1 parent 0df525c commit ed51f31
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import (
"fmt"
"log"
"os"
"runtime"
"strings"
)

// Logger struct holds the verbosity level
Expand Down Expand Up @@ -42,8 +40,8 @@ func (v *verbosityLogger) Infof(format string, args ...interface{}) {
// output logs the message if the logger's verbosity level is greater than or equal to the level
func (l *Logger) output(level int, message string) {
if l.verbosity >= level {
_, file, _, _ := runtime.Caller(2)
file = file[strings.LastIndex(file, "/")+1:]
// _, file, _, _ := runtime.Caller(2)
// file = file[strings.LastIndex(file, "/")+1:]
log.SetOutput(os.Stdout)
log.SetFlags(0)
// log.Printf("❖ %v|%s| %s\n", time.Now().Format(time.RFC3339), file, message)
Expand Down

0 comments on commit ed51f31

Please sign in to comment.