Skip to content

Commit 80c28d6

Browse files
committed
chore(util): Fix .name -> .repo_name
1 parent 4c17d53 commit 80c28d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libvcs/util.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ class RepoLoggingAdapter(logging.LoggerAdapter):
8989
9090
Any class that subclasses this will have its class attributes for:
9191
92-
- :attr:`~.bin_name` -> ``repo_vcs``
93-
- :attr:`~.name` -> ``repo_name``
92+
- :attr:`~.bin_name` -> ``repo_vcs``
93+
- :attr:`~.repo_name` -> ``repo_name``
9494
9595
Added to a dictionary of context information in :py:meth:`
9696
logging.LoggerAdapter.process()` to be made use of when the user of this
@@ -106,7 +106,7 @@ def process(self, msg, kwargs):
106106
"""Add additional context information for loggers."""
107107
prefixed_dict = {}
108108
prefixed_dict['repo_vcs'] = self.bin_name
109-
prefixed_dict['repo_name'] = self.name
109+
prefixed_dict['repo_name'] = self.repo_name
110110

111111
kwargs["extra"] = prefixed_dict
112112

0 commit comments

Comments
 (0)