forked from TrueCloudLab/restic
Don't buffer the golang log output when running tests
This commit is contained in:
parent
049a105ba5
commit
2e3d4640be
1 changed files with 1 additions and 3 deletions
|
@ -85,13 +85,11 @@ func needsPassword(cmd string) bool {
|
|||
|
||||
var logBuffer = bytes.NewBuffer(nil)
|
||||
|
||||
func init() {
|
||||
func main() {
|
||||
// install custom global logger into a buffer, if an error occurs
|
||||
// we can show the logs
|
||||
log.SetOutput(logBuffer)
|
||||
}
|
||||
|
||||
func main() {
|
||||
debug.Log("main %#v", os.Args)
|
||||
debug.Log("restic %s compiled with %v on %v/%v",
|
||||
version, runtime.Version(), runtime.GOOS, runtime.GOARCH)
|
||||
|
|
Loading…
Reference in a new issue