From c83cbeeb225ec6eac7f99b83e7d8d7d5bf466a03 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 24 Aug 2018 19:18:13 +0300 Subject: [PATCH] feature(export) add config send log --- HELP.md | 1 + server/distribute/export.js | 1 + 2 files changed, 2 insertions(+) diff --git a/HELP.md b/HELP.md index 1b9d2866..8a396d3f 100644 --- a/HELP.md +++ b/HELP.md @@ -460,6 +460,7 @@ Here is the log of `export server`: url: http://localhost:1234/ 2018.08.23 13:41:45 -> export: try to auth from importer [127.0.0.1:4321] 2018.08.23 13:41:45 -> export: connected to importer [127.0.0.1:4321] +2018.08.23 13:41:45 -> export: config send to importer[127.0.0.1:4321] 2018.08.23 13:41:45 -> export: disconnected importer [127.0.0.1:4321] ``` diff --git a/server/distribute/export.js b/server/distribute/export.js index 7d6ecd20..7eeda14c 100644 --- a/server/distribute/export.js +++ b/server/distribute/export.js @@ -85,6 +85,7 @@ const connectPush = wraptile((push, socket) => { log(exportStr, `${connectedStr} to ${host}`); socket.emit('config', omitConfig(config('*'))); + log(exportStr, `config send to ${host}`); config.subscribe(subscription); });