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