File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -349,13 +349,13 @@ def main() -> None:
349
349
if args .output_log_utf8 :
350
350
set_output_log_utf8 ()
351
351
352
- # Sentry によるエラートラッキングを開始
352
+ # Sentry によるエラートラッキングを開始 (production 環境のみ有効)
353
353
# ref: https://docs.sentry.io/platforms/python/integrations/fastapi/
354
- if not args .disable_sentry :
354
+ if not args .disable_sentry and __version__ != "latest" :
355
355
sentry_sdk .init (
356
356
dsn = "https://ebdf5cc288b3ab31a262186329ff3a95@o4508551725383680.ingest.us.sentry.io/4508555159470080" ,
357
357
release = f"AivisSpeech-Engine@{ __version__ } " ,
358
- environment = "development" if __version__ == "latest" else " production" ,
358
+ environment = "production" ,
359
359
# Set traces_sample_rate to 1.0 to capture 100%
360
360
# of transactions for tracing.
361
361
traces_sample_rate = 1.0 ,
You can’t perform that action at this time.
0 commit comments