summaryrefslogtreecommitdiff
path: root/internal/log
diff options
context:
space:
mode:
Diffstat (limited to 'internal/log')
-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)