aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-09-29 18:15:45 +0200
committern-peugnet <n.peugnet@free.fr>2021-09-29 18:15:45 +0200
commite78a65ca04492488fe68364e90c24615cdb39ff6 (patch)
tree5ad290b7b15cb265bc712ef2033eea81a2edc863
parent70a64db6bca2aaa5cfee4d50d582d575be21d5fe (diff)
downloaddna-backup-e78a65ca04492488fe68364e90c24615cdb39ff6.tar.gz
dna-backup-e78a65ca04492488fe68364e90c24615cdb39ff6.zip
echo actual logger output in symlink test
-rw-r--r--repo_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/repo_test.go b/repo_test.go
index 63a1184..82e8558 100644
--- a/repo_test.go
+++ b/repo_test.go
@@ -174,7 +174,8 @@ func TestReadFiles3(t *testing.T) {
func TestSymlinks(t *testing.T) {
var output bytes.Buffer
- logger.SetOutput(&output)
+ multi := io.MultiWriter(&output, os.Stderr)
+ logger.SetOutput(multi)
defer logger.SetOutput(os.Stderr)
tmpDir := t.TempDir()
extDir := t.TempDir()