Skip to content

Commit

Permalink
attach to root logger
Browse files Browse the repository at this point in the history
  • Loading branch information
austinlparker committed Mar 11, 2024
1 parent 8ed262a commit f8c3756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loadgenerator/locustfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
handler = LoggingHandler(level=logging.INFO, logger_provider=logger_provider)

# Attach OTLP handler to locust logger
logging.getLogger("locust").addHandler(handler)
logging.getLogger().addHandler(handler)

exporter = OTLPMetricExporter(insecure=True)
set_meter_provider(MeterProvider([PeriodicExportingMetricReader(exporter)]))
Expand Down

0 comments on commit f8c3756

Please sign in to comment.