fix logging with -schema
This commit is contained in:
parent
1e18909940
commit
b95fb8f90b
4
main.go
4
main.go
@ -17,6 +17,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
|
|
||||||
|
"github.com/rs/zerolog/log"
|
||||||
"golang.org/x/sys/unix"
|
"golang.org/x/sys/unix"
|
||||||
|
|
||||||
"gitea.libretechconsulting.com/rmcguire/go-app/pkg/app"
|
"gitea.libretechconsulting.com/rmcguire/go-app/pkg/app"
|
||||||
@ -37,7 +38,6 @@ func main() {
|
|||||||
|
|
||||||
// Load configuration and setup logging
|
// Load configuration and setup logging
|
||||||
ctx, demoApp := app.MustLoadConfigInto(ctx, demoAppConfig)
|
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
|
// Print schema if that's all we have to do
|
||||||
if flagSchema {
|
if flagSchema {
|
||||||
@ -45,6 +45,8 @@ func main() {
|
|||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Debug().Any("demoAppMergedConfig", demoApp).Msg("demo app config prepared")
|
||||||
|
|
||||||
// Prepare app
|
// Prepare app
|
||||||
app := &app.App{
|
app := &app.App{
|
||||||
AppContext: ctx,
|
AppContext: ctx,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user