Skip to content

Commit 49a39f0

Browse files
committed
Standardised how the Analyser, DirWatcher, and Rsyncer objects are represented in logs
1 parent 3eaa517 commit 49a39f0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/murfey/client/analyser.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ def __init__(
8282
else {}
8383
)
8484

85+
def __repr__(self) -> str:
86+
return f"<Analyser ({self._basepath})"
87+
8588
def _find_extension(self, file_path: Path):
8689
"""
8790
Identifies the file extension and stores that information in the class.

src/murfey/client/rsync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def __init__(
109109
self._statusbar = status_bar
110110

111111
def __repr__(self) -> str:
112-
return f"<RSyncer {self._basepath}{self._remote} ({self.status})"
112+
return f"<RSyncer ({self._basepath}{self._remote}) [{self.status}]"
113113

114114
@classmethod
115115
def from_rsyncer(cls, rsyncer: RSyncer, **kwargs):

0 commit comments

Comments
 (0)