Skip to content

Commit

Permalink
Lint example
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavmarla committed Aug 22, 2022
1 parent 6ae166d commit 6373a56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/examples/logs/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@

exporter = OTLPLogExporter(insecure=True)
log_emitter_provider.add_log_processor(BatchLogProcessor(exporter))
handler = LoggingHandler(level=logging.NOTSET, log_emitter_provider=log_emitter_provider)
handler = LoggingHandler(
level=logging.NOTSET, log_emitter_provider=log_emitter_provider
)

# Attach OTLP handler to root logger
logging.getLogger().addHandler(handler)
Expand Down

0 comments on commit 6373a56

Please sign in to comment.