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