Fix SyncLogs to use appropriate keys when connecting to different hosts.