google / google/fscrypt

`log` usages complicates using as a library

Open
#302 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
1k
Forks
111
Avg merge
2d 19h
Merged PRs (30d)
3

Description

Hi! In the vein of #175 I was playing with `fscrypt` as a library to get information about a directory. One thing I noticed, is a bunch of debugging oriented logging. To disable it, I ended up wrapping my calls to fscrypt with:
```golang
origLog := log.Writer()
defer func() {
log.SetOutput(origLog)
}()
```

But that feels a bit messy? I'm not sure if y'all have any thoughts about this, but I wanted to mention it as a small annoyance.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.