mirror of
https://github.com/rclone/rclone.git
synced 2025-04-19 18:31:10 +08:00
improve logs
This commit is contained in:
parent
90289401fa
commit
ccf03886ad
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user