use Stderr instead of Stdout for logging

This commit is contained in:
miampf 2024-01-22 15:23:01 +01:00
parent d4b4992731
commit 0b75b429c3
No known key found for this signature in database
GPG key ID: 376EAC0E5307A669
32 changed files with 34 additions and 34 deletions

View file

@ -39,7 +39,7 @@ func BenchmarkMapper(b *testing.B) {
}
passphrase := "benchmark"
mapper, free, err := diskencryption.New(testPath, slog.New(slog.NewTextHandler(os.Stdout, &slog.HandlerOptions{Level: slog.LevelInfo})))
mapper, free, err := diskencryption.New(testPath, slog.New(slog.NewTextHandler(os.Stderr, &slog.HandlerOptions{Level: slog.LevelInfo})))
if err != nil {
b.Fatal("Failed to create mapper:", err)
}