Handle changes to arcgis-go

This commit is contained in:
Eli Ribble 2026-02-12 21:05:51 +00:00
parent bbbc06583a
commit 8e68230f4a
No known key found for this signature in database
2 changed files with 82 additions and 49 deletions

View file

@ -11,6 +11,7 @@ import (
"syscall"
"time"
"github.com/Gleipnir-Technology/arcgis-go"
"github.com/Gleipnir-Technology/nidus-sync/auth"
"github.com/Gleipnir-Technology/nidus-sync/background"
"github.com/Gleipnir-Technology/nidus-sync/config"
@ -143,7 +144,9 @@ func main() {
log.Error().Err(err).Msg("Failed to start openAI client")
os.Exit(8)
}
background.Start(ctx)
custom_logger := log.With().Logger().Level(zerolog.InfoLevel)
background_ctx := arcgis.WithLogger(ctx, custom_logger)
background.Start(background_ctx)
server := &http.Server{
Addr: config.Bind,
Handler: r,