[#2324] Update Watchdog

This commit is contained in:
David Sangrey committed 2025-01-06 15:42:55 -05:00
1 parent 6eb084307d
commit 7d3d09f60b
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -87,7 +87,7 @@ class Dashboard(FileSystemEventHandler):
if not self.observed and sys.platform == 'win32':
logger.debug('Starting observer...')
self.observed = cast(BaseObserver, self.observer).schedule(self, self.currentdir)
self.observed = cast(BaseObserver, self.observer).schedule(self, self.currentdir) # type: ignore
logger.debug('Done')
logger.info(f'{(sys.platform != "win32") and "Polling" or "Monitoring"} Dashboard "{self.currentdir}"')
+2 -2
View File
@@ -337,9 +337,9 @@ class EDLogs(FileSystemEventHandler):
def on_created(self, event: 'FileSystemEvent') -> None:
"""Watchdog callback when, e.g. client (re)started."""
if not event.is_directory and self._RE_LOGFILE.search(basename(event.src_path)):
if not event.is_directory and self._RE_LOGFILE.search(str(basename(event.src_path))):
self.logfile = event.src_path
self.logfile = event.src_path # type: ignore
def worker(self) -> None: # noqa: C901, CCR001
"""
+1 -1
View File
@@ -1,6 +1,6 @@
requests==2.32.3
pillow==10.4.0
watchdog==4.0.1
watchdog==6.0.0
simplesystray==0.1.0; sys_platform == 'win32'
semantic-version==2.10.0
# For manipulating folder permissions and the like.