Remove last SetOutput from generic code
This commit is contained in:
parent
9f9cf882ad
commit
2e419e635f
@ -2,7 +2,6 @@ package cryptfs
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
@ -37,7 +36,6 @@ func TestLoadV2PwdError(t *testing.T) {
|
|||||||
Warn.Enabled = false
|
Warn.Enabled = false
|
||||||
}
|
}
|
||||||
_, _, err := LoadConfFile("config_test/v2.conf", "wrongpassword")
|
_, _, err := LoadConfFile("config_test/v2.conf", "wrongpassword")
|
||||||
Warn.SetOutput(os.Stderr)
|
|
||||||
if err == nil {
|
if err == nil {
|
||||||
t.Errorf("Loading with wrong password must fail but it didn't")
|
t.Errorf("Loading with wrong password must fail but it didn't")
|
||||||
}
|
}
|
||||||
|
2
main.go
2
main.go
@ -176,7 +176,7 @@ func main() {
|
|||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
if args.debug {
|
if args.debug {
|
||||||
cryptfs.Debug.SetOutput(os.Stdout)
|
cryptfs.Debug.Enabled = true
|
||||||
cryptfs.Debug.Printf("Debug output enabled")
|
cryptfs.Debug.Printf("Debug output enabled")
|
||||||
}
|
}
|
||||||
// Every operation below requires CIPHERDIR. Check that we have it.
|
// Every operation below requires CIPHERDIR. Check that we have it.
|
||||||
|
Loading…
Reference in New Issue
Block a user