chore: logging

This commit is contained in:
Marvin Preuss 2024-04-02 07:57:33 +00:00
parent 63369157b3
commit 28b69b572b

View File

@ -3,6 +3,7 @@ package config
import ( import (
"encoding" "encoding"
"fmt" "fmt"
"log/slog"
"os" "os"
) )
@ -22,10 +23,14 @@ func (c *Config) GetPassword() (string, error) {
} }
if c.Password != "" { if c.Password != "" {
slog.Debug("read password in config")
return c.Password, nil return c.Password, nil
} }
if c.PasswordFile != "" { if c.PasswordFile != "" {
slog.Debug("read password file in config")
return string(c.PasswordFile), nil return string(c.PasswordFile), nil
} }