summaryrefslogtreecommitdiff
path: root/internal/log/log.go
diff options
context:
space:
mode:
authorJeroen Wijenbergh <jeroen.wijenbergh@geant.org>2025-08-25 10:59:37 +0200
committerJeroen Wijenbergh <jeroen.wijenbergh@geant.org>2025-08-25 13:06:41 +0200
commit27b95b4911da055fe9b5fb37b5fb4a33eda6b989 (patch)
treef6eb1143fa9bd2995d671b71d75c950e2c703660 /internal/log/log.go
parentb4f4f5600298436c63b89f289c318d777300c499 (diff)
All: Remove util packages
Was giving linting errors and it's not a good idea anyways
Diffstat (limited to 'internal/log/log.go')
-rw-r--r--internal/log/log.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/internal/log/log.go b/internal/log/log.go
index 47cdcf3..53671b3 100644
--- a/internal/log/log.go
+++ b/internal/log/log.go
@@ -7,8 +7,6 @@ import (
"log/slog"
"os"
"path"
-
- "codeberg.org/eduVPN/eduvpn-common/internal/util"
)
// Init initializes the logger by setting a max level 'level' and a directory 'directory' where the log should be stored
@@ -17,7 +15,7 @@ import (
// It returns the log file and the error
// This log file should be closed at the end
func Init(lvl slog.Level, dir string) (*os.File, error) {
- err := util.EnsureDirectory(dir)
+ err := os.MkdirAll(dir, 0o700)
if err != nil {
return nil, err
}