do not print stats in quiet mode - fixes #70
...unless had some errors or stats interval requested. Add fs.ErrorLog to differentiate between Logs which should be suppressed and errors which shouldn't.
This commit is contained in:
parent
472f065ce7
commit
3fcff32524
10 changed files with 63 additions and 57 deletions
6
fs/fs.go
6
fs/fs.go
|
@ -264,6 +264,12 @@ func Log(o interface{}, text string, args ...interface{}) {
|
|||
}
|
||||
}
|
||||
|
||||
// Write error log output for this Object or Fs
|
||||
// Unconditionally logs a message regardless of Config.Quiet or Config.Verbose
|
||||
func ErrorLog(o interface{}, text string, args ...interface{}) {
|
||||
OutputLog(o, text, args...)
|
||||
}
|
||||
|
||||
// checkClose is a utility function used to check the return from
|
||||
// Close in a defer statement.
|
||||
func checkClose(c io.Closer, err *error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue