diff options
author | Alan Pearce | 2024-06-29 21:27:35 +0200 |
---|---|---|
committer | Alan Pearce | 2024-06-29 21:27:35 +0200 |
commit | 973fa31b6743a3ea84c86ab7671349cc70a69142 (patch) | |
tree | 4c583c8ef5e7a9117fe997a4f861ae7466fa0864 /internal/config | |
parent | 7b82d3ef3e93c0c8efe489d6b11b30f092667bf2 (diff) | |
download | website-973fa31b6743a3ea84c86ab7671349cc70a69142.tar.lz website-973fa31b6743a3ea84c86ab7671349cc70a69142.tar.zst website-973fa31b6743a3ea84c86ab7671349cc70a69142.zip |
enable filtered debug logging via DEBUG="component.*"
Diffstat (limited to 'internal/config')
-rw-r--r-- | internal/config/config.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/config/config.go b/internal/config/config.go index 5e568cd..42e36d7 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -51,7 +51,7 @@ type Config struct { Menus map[string][]MenuItem } -func GetConfig(dir string) (*Config, error) { +func GetConfig(dir string, log *log.Logger) (*Config, error) { config := Config{} filename := filepath.Join(dir, "config.toml") log.Debug("reading config", "filename", filename) |