summaryrefslogtreecommitdiff
path: root/internal/log
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-10-13 13:44:07 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-10-13 13:44:07 +0200
commitbadac4c8dec6be7a798e891281221f7830305c88 (patch)
treea786fbd59cf9eab7ac8389ced8954859cc433fc4 /internal/log
parentadf59e8c6cdaf050ef9cf09301111e7429ec0c37 (diff)
Format: Run gofumpt
Diffstat (limited to 'internal/log')
-rw-r--r--internal/log/log.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/log/log.go b/internal/log/log.go
index 7241164..970480f 100644
--- a/internal/log/log.go
+++ b/internal/log/log.go
@@ -6,8 +6,8 @@ import (
"os"
"path"
- "github.com/eduvpn/eduvpn-common/types"
"github.com/eduvpn/eduvpn-common/internal/util"
+ "github.com/eduvpn/eduvpn-common/types"
)
type FileLogger struct {
@@ -71,7 +71,7 @@ func (logger *FileLogger) Init(level LogLevel, name string, directory string) er
func (logger *FileLogger) Inherit(err error, msg string) {
level := types.GetErrorLevel(err)
- switch(level) {
+ switch level {
case types.ERR_INFO:
logger.Info(msg)
case types.ERR_WARNING:
@@ -81,7 +81,6 @@ func (logger *FileLogger) Inherit(err error, msg string) {
case types.ERR_FATAL:
logger.Fatal(msg)
}
-
}
func (logger *FileLogger) Info(msg string) {