Added TIMEZONE to database app config and validate

This commit is contained in:
Magnus Åhall 2024-06-27 09:07:02 +02:00
parent 43d8938459
commit c28c848b95
3 changed files with 21 additions and 4 deletions

View file

@ -153,7 +153,13 @@ func main() { // {{{
go nodataLoop()
err = SmonConfigInit()
smonConfig, err = SmonConfigInit()
if err != nil {
logger.Error("configuration", "error", werr.Wrap(err))
os.Exit(1)
}
err = smonConfig.Validate()
if err != nil {
logger.Error("configuration", "error", werr.Wrap(err))
os.Exit(1)