feature(export) add config send log

This commit is contained in:
coderaiser 2018-08-24 19:18:13 +03:00
parent 3250c07a16
commit c83cbeeb22
2 changed files with 2 additions and 0 deletions

View file

@ -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]
```

View file

@ -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);
});