fix: removed debug log

This commit is contained in:
Martin Riedl 2024-05-25 16:33:06 +02:00
parent 2a3fcd390a
commit b44771fddb
Signed by: martinr92
GPG key ID: FB68DA65516A804C

View file

@ -15,7 +15,6 @@
package golog package golog
import ( import (
"log"
"runtime" "runtime"
"strings" "strings"
"time" "time"
@ -69,13 +68,11 @@ func (logger *Logger) callStack() (response []runtime.Frame) {
// extract self package // extract self package
if self == "" { if self == "" {
self = logger.framePackage(frame) self = logger.framePackage(frame)
log.Println("self:", self, frame.Function) // TODO: remove
continue continue
} }
// ignore self // ignore self
currentPackage := logger.framePackage(frame) currentPackage := logger.framePackage(frame)
log.Println("package:", currentPackage, frame.Function) // TODO: remove
if currentPackage != self { if currentPackage != self {
response = append(response, frame) response = append(response, frame)
} }