chore: logging

This commit is contained in:
Marvin Preuss 2024-04-02 07:57:33 +00:00
parent 63369157b3
commit 28b69b572b
1 changed files with 5 additions and 0 deletions

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
}