all repos — searchix @ 99d5507b223baa6c780707d32c7bbbb8611034f0

Search engine for NixOS, nix-darwin, home-manager and NUR users

feat: allow configuration of log level

Alan Pearce
commit

99d5507b223baa6c780707d32c7bbbb8611034f0

parent

14c1ddaf7c5468c5966b0c1585f19a5ff39c206d

1 file changed, 9 insertions(+), 8 deletions(-)

changed files
M internal/server/server.gointernal/server/server.go
@@ -36,14 +36,15 @@ ShortSHA string
) type Config struct { - Production bool `conf:"default:false"` - InDevServer bool `conf:"default:false"` - LiveReload bool `conf:"default:false,flag:live"` - Root string `conf:"default:website"` - ListenAddress string `conf:"default:localhost"` - Port string `conf:"default:3000,short:p"` - BaseURL cfg.URL `conf:"default:http://localhost:3000,short:b"` - ConfigFile string `conf:"short:c"` + Production bool `conf:"default:false"` + InDevServer bool `conf:"default:false"` + LiveReload bool `conf:"default:false,flag:live"` + Root string `conf:"default:website"` + ListenAddress string `conf:"default:localhost"` + Port string `conf:"default:3000,short:p"` + BaseURL cfg.URL `conf:"default:http://localhost:3000,short:b"` + ConfigFile string `conf:"short:c"` + LogLevel slog.Level `conf:"default:INFO"` } type HTTPError struct {