fix: removed debug log
This commit is contained in:
parent
2a3fcd390a
commit
b44771fddb
1 changed files with 0 additions and 3 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue