Skip to content

Commit

Permalink
Use __name__ instead of __file__ (#794)
Browse files Browse the repository at this point in the history
Fixes #787
  • Loading branch information
ocelotl authored Nov 8, 2021
1 parent 0c083ff commit 5993329
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

from pkg_resources import iter_entry_points

_logger = getLogger(__file__)
_logger = getLogger(__name__)


def run() -> None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
OTEL_PYTHON_DISABLED_INSTRUMENTATIONS,
)

logger = getLogger(__file__)
logger = getLogger(__name__)


def _load_distros() -> BaseDistro:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
libraries,
)

logger = logging.getLogger(__file__)
logger = logging.getLogger(__name__)


def _syscall(func):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
get_distribution,
)

logger = getLogger(__file__)
logger = getLogger(__name__)


class DependencyConflict:
Expand Down

0 comments on commit 5993329

Please sign in to comment.