diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-02-12 19:18:05 +0100 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2024-02-19 14:15:07 +0100 |
| commit | 74e36f0ead717105f26087c2cab08b41ba5a7ce8 (patch) | |
| tree | 1eb2b7516bea705c9b5a50ce0965e170414ed880 /internal/log | |
| parent | 682d70091af2044ff6d8b350da9dff13163232e2 (diff) | |
All: Document everything to pass revive lint
Diffstat (limited to 'internal/log')
| -rw-r--r-- | internal/log/log.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/log/log.go b/internal/log/log.go index 8d3fbfb..02373c9 100644 --- a/internal/log/log.go +++ b/internal/log/log.go @@ -24,6 +24,7 @@ type FileLogger struct { // Logger is the global logger instance var Logger *FileLogger +// Level is the level of log, e.g. debug type Level int8 const ( @@ -88,7 +89,7 @@ func (logger *FileLogger) Init(lvl Level, dir string) error { return nil } -// Inheritf logs an error with a message and params using the error level verbosity of the error. +// Inherit logs an error with a message and params using the error level verbosity of the error. // The message is always prefixed with the error. func (logger *FileLogger) Inherit(err error, msg string) { if err == nil { |
