package config

This commit is contained in:
henk
2026-05-15 14:22:16 +02:00
parent 1254f70a5f
commit 107c23a29d
7 changed files with 180 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ import (
"io"
"log/slog"
"os"
"path/filepath"
"gopkg.in/natefinch/lumberjack.v2"
)
@@ -13,7 +14,7 @@ func main() {
if err != nil {
panic("Can't determine home directory")
}
logFilePath := logBaseDir + "/.local/share/mars_terraform_registry/logs"
logFilePath := filepath.Join(logBaseDir, ".local", "share", "mars_terraform_registry", "logs")
if err := os.MkdirAll(logFilePath, 0755); err != nil {
panic("Can't create log directory")
}