fix logging with -schema

This commit is contained in:
Ryan McGuire 2025-03-30 11:42:34 -04:00
parent 1e18909940
commit b95fb8f90b

View File

@ -17,6 +17,7 @@ import (
"os"
"os/signal"
"github.com/rs/zerolog/log"
"golang.org/x/sys/unix"
"gitea.libretechconsulting.com/rmcguire/go-app/pkg/app"
@ -37,7 +38,6 @@ func main() {
// Load configuration and setup logging
ctx, demoApp := app.MustLoadConfigInto(ctx, demoAppConfig)
fmt.Printf("Demo App Config:\n\n%+v\n", *demoApp)
// Print schema if that's all we have to do
if flagSchema {
@ -45,6 +45,8 @@ func main() {
os.Exit(1)
}
log.Debug().Any("demoAppMergedConfig", demoApp).Msg("demo app config prepared")
// Prepare app
app := &app.App{
AppContext: ctx,