Add debugging around staging environment not acting like prod

This commit is contained in:
Eli Ribble 2026-03-05 19:17:16 +00:00
parent 2283aba713
commit e33bce7436
No known key found for this signature in database
2 changed files with 8 additions and 2 deletions

View file

@ -46,8 +46,9 @@ func main() {
log.Warn().Msg("Forcing production mode for testing templates")
config.Environment = "PRODUCTION"
}
log.Info().Str("environment", config.Environment).Bool("is-prod", config.IsProductionEnvironment()).Msg("Starting")
err = sentry.Init(sentry.ClientOptions{
Debug: false, //!config.IsProductionEnvironment(),
Debug: !config.IsProductionEnvironment(),
Dsn: config.SentryDSN,
EnableTracing: true,
SendDefaultPII: true,

View file

@ -1,2 +1,7 @@
#!/run/current-system/sw/bin/bash
export $(cat /var/run/secrets/nidus-dev-sync-env | xargs) && MITM_PROXY=http://127.0.0.1:8080 ./nidus-sync 2>&1 | tee nidus-sync.log
# with MITM
# export $(cat /var/run/secrets/nidus-dev-sync-env | xargs) && MITM_PROXY=http://127.0.0.1:8080 ./nidus-sync 2>&1 | tee nidus-sync.log
# original recipe
#export $(cat /var/run/secrets/nidus-dev-sync-env | xargs) && ./nidus-sync 2>&1 | tee nidus-sync.log
# force production environment
export $(cat /var/run/secrets/nidus-dev-sync-env | xargs) && ./nidus-sync -prod 2>&1 | tee nidus-sync.log