Skip to content
This repository was archived by the owner on Dec 14, 2025. It is now read-only.

Commit 6baccaa

Browse files
committed
1 parent e738f9c commit 6baccaa

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ Possible issues
6666

6767
try `docker exec -it seaf-cli /bin/bash` and make sure the command (e.q. `seaf-cli list-remote ...`) works
6868

69+
## TODO
70+
71+
- hard link log files to stdout: `ln -sf /proc/self/fd/1 /var/log/myapp.log`
72+
6973
## License
7074

7175
[MIT](https://choosealicense.com/licenses/mit/)

src/entrypoint.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,13 @@ def list_remote(self):
208208

209209
def sync(self):
210210
logging.info(f'Synchronizing...')
211+
try:
212+
dirs = self.__get_config_value('dirs')
213+
except KeyError:
214+
logging.info(f'dirs not found in {self.config_file}')
215+
return
211216
rpc = self.__get_rpc_client()
212-
for row in self.__get_config_value('dirs'):
217+
for row in dirs:
213218
uuid = row['uuid']
214219
path = row['path']
215220
repo = rpc.get_repo(uuid)

0 commit comments

Comments
 (0)