chore: extraneous $

This commit is contained in:
Marc Cataford 2020-09-28 09:39:30 -04:00
parent ddbed30d06
commit bd349d8338

View file

@ -1,5 +1,4 @@
import json import json
import socket import socket
import pyinotify import pyinotify
import attr import attr
@ -26,7 +25,7 @@ class Server:
socket.bind((settings.SOCKET_HOST, settings.SOCKET_PORT)) socket.bind((settings.SOCKET_HOST, settings.SOCKET_PORT))
socket.listen() socket.listen()
logger.info(f"Listening on ${settings.SOCKET_HOST}:{settings.SOCKET_PORT}") logger.info(f"Listening on {settings.SOCKET_HOST}:{settings.SOCKET_PORT}")
while True: while True:
conn, _ = socket.accept() conn, _ = socket.accept()
@ -57,7 +56,7 @@ class Server:
watch_manager = pyinotify.WatchManager() watch_manager = pyinotify.WatchManager()
for path in self.watched: for path in self.watched:
logger.info(f"Watching ${path}") logger.info(f"Watching {path}")
watch_manager.add_watch(path, pyinotify.ALL_EVENTS, rec=True) watch_manager.add_watch(path, pyinotify.ALL_EVENTS, rec=True)
event_handler = WatchHandler(indexer=self.indexer) event_handler = WatchHandler(indexer=self.indexer)