improve logs

This commit is contained in:
Phuong Pham 2025-02-16 13:44:28 -06:00
parent 90289401fa
commit ccf03886ad

View File

@ -6,6 +6,7 @@ import (
"fmt"
"log"
"os"
"runtime/debug"
"github.com/sirupsen/logrus"
)
@ -270,6 +271,14 @@ func Logf(o interface{}, text string, args ...interface{}) {
LogLevelPrintf(LogLevelNotice, o, text, args...)
}
func LogMe(text string) {
LogLevelPrint(LogLevelInfo, nil, text)
}
func LogCallStack() {
debug.PrintStack()
}
// Infoc writes info on transfers for this Object or Fs. Use this
// level for logging transfers, deletions and things which should
// appear with the -v flag.