mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 08:23:47 +01:00
Log all objects more informatively
This commit is contained in:
parent
81a933ae38
commit
873db29391
4
fs/fs.go
4
fs/fs.go
@ -244,8 +244,8 @@ func NewFs(path string) (Fs, error) {
|
||||
// Outputs log for object
|
||||
func OutputLog(o interface{}, text string, args ...interface{}) {
|
||||
description := ""
|
||||
if x, ok := o.(fmt.Stringer); ok {
|
||||
description = x.String() + ": "
|
||||
if o != nil {
|
||||
description = fmt.Sprintf("%v: ", o)
|
||||
}
|
||||
out := fmt.Sprintf(text, args...)
|
||||
log.Print(description + out)
|
||||
|
Loading…
Reference in New Issue
Block a user