Skip to content

Commit

Permalink
Fix argument name to logger_provider on set_logger_provider (open-tel…
Browse files Browse the repository at this point in the history
  • Loading branch information
zchee authored Nov 6, 2023
1 parent 6676a28 commit fcaa6c0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,13 @@ def set_lp() -> None:
_logger.warning("Overriding of current LoggerProvider is not allowed")


def set_logger_provider(meter_provider: LoggerProvider) -> None:
def set_logger_provider(logger_provider: LoggerProvider) -> None:
"""Sets the current global :class:`~.LoggerProvider` object.
This can only be done once, a warning will be logged if any further attempt
is made.
"""
_set_logger_provider(meter_provider, log=True)
_set_logger_provider(logger_provider, log=True)


def get_logger(
Expand Down

0 comments on commit fcaa6c0

Please sign in to comment.