diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-02-06 14:43:06 +0100 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2024-02-19 14:15:07 +0100 |
| commit | 3fd29f3e1c963196cac69fcbb9d68116f7ea80ec (patch) | |
| tree | 7cb586d304167e4198166ff17dc79d33122a75e5 /internal/log | |
| parent | 2337dcde60a710d2f65d3fe1107811202e34c633 (diff) | |
All: Prepare to get rid of go-errors/errors lib
Diffstat (limited to 'internal/log')
| -rw-r--r-- | internal/log/log.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/log/log.go b/internal/log/log.go index 638f2ae..8d3fbfb 100644 --- a/internal/log/log.go +++ b/internal/log/log.go @@ -9,7 +9,6 @@ import ( "path" "github.com/eduvpn/eduvpn-common/internal/util" - "github.com/go-errors/errors" ) // FileLogger defines the type of logger that this package implements @@ -80,7 +79,7 @@ func (logger *FileLogger) Init(lvl Level, dir string) error { 0o666, ) if err != nil { - return errors.WrapPrefix(err, "failed creating log", 0) + return fmt.Errorf("failed creating log: %w", err) } multi := io.MultiWriter(os.Stdout, f) log.SetOutput(multi) |
