forked from TrueCloudLab/restic
Add Verboseff
This commit is contained in:
parent
ce7d613749
commit
3b591ed987
1 changed files with 7 additions and 0 deletions
|
@ -231,6 +231,13 @@ func Verbosef(format string, args ...interface{}) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Verboseff calls Printf to write the message when the verbosity is >= 2
|
||||||
|
func Verboseff(format string, args ...interface{}) {
|
||||||
|
if globalOptions.verbosity >= 2 {
|
||||||
|
Printf(format, args...)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// PrintProgress wraps fmt.Printf to handle the difference in writing progress
|
// PrintProgress wraps fmt.Printf to handle the difference in writing progress
|
||||||
// information to terminals and non-terminal stdout
|
// information to terminals and non-terminal stdout
|
||||||
func PrintProgress(format string, args ...interface{}) {
|
func PrintProgress(format string, args ...interface{}) {
|
||||||
|
|
Loading…
Reference in a new issue