summaryrefslogtreecommitdiff
path: root/internal/log/log.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-11-28 11:52:04 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-11-28 12:03:16 +0100
commit7339e77c6eda5b96874dfc099d5c58da8ed53629 (patch)
treeb602159b0c397cbaa4f8983aea987274163fe357 /internal/log/log.go
parente9f8db8ee8fccf60e58deb1d72766f94a053bb16 (diff)
Refactor: Remove most get prefixes for receiver functions
Diffstat (limited to 'internal/log/log.go')
-rw-r--r--internal/log/log.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/log/log.go b/internal/log/log.go
index 7d032e9..eaedc28 100644
--- a/internal/log/log.go
+++ b/internal/log/log.go
@@ -90,9 +90,9 @@ func (logger *FileLogger) Init(level LogLevel, directory string) error {
// Inherit logs an error with a label using the error level of the error
func (logger *FileLogger) Inherit(label string, err error) {
- level := types.GetErrorLevel(err)
+ level := types.ErrorLevel(err)
- msg := fmt.Sprintf("%s with err: %s", label, types.GetErrorTraceback(err))
+ msg := fmt.Sprintf("%s with err: %s", label, types.ErrorTraceback(err))
switch level {
case types.ErrInfo:
logger.Info(msg)