elasticio-sailor-nodejs 3.0.0-dev1 → 3.0.0-dev2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/encryptor.js CHANGED
@@ -5,7 +5,6 @@ class Encryptor {
5
5
  constructor(password, iv) {
6
6
  this._cryptoPassword = password;
7
7
  this._cryptoIV = iv;
8
- console.log(password, iv);
9
8
  if (this._cryptoPassword) {
10
9
  this._encryptionKey = crypto
11
10
  .createHash('sha256')
@@ -71,6 +71,7 @@ class ProxyClient {
71
71
 
72
72
  async connect() {
73
73
  try {
74
+ log.trace('connecting to http2 server');
74
75
  this.clientSession = http2.connect(this.settings.SAILOR_PROXY_URI);
75
76
  this.closed = false;
76
77
  this.reconnectAttempts = 0;
package/lib/sailor.js CHANGED
@@ -52,6 +52,7 @@ class Sailor {
52
52
  }
53
53
 
54
54
  async prepare() {
55
+ log.trace('prepare sailor');
55
56
  const {
56
57
  settings: {
57
58
  COMPONENT_PATH: compPath,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "elasticio-sailor-nodejs",
3
3
  "description": "The official elastic.io library for bootstrapping and executing for Node.js connectors",
4
- "version": "3.0.0-dev1",
4
+ "version": "3.0.0-dev2",
5
5
  "main": "run.js",
6
6
  "scripts": {
7
7
  "build": "tsc",
package/run.js CHANGED
@@ -24,6 +24,7 @@ function prepareSandbox() {
24
24
  }
25
25
 
26
26
  async function putOutToSea(settings, ipc) {
27
+ logger.trace({ settings }, 'putOutToSea called');
27
28
  ipc.send('init:started');
28
29
  const deferred = Q.defer();
29
30
  sailorInit = deferred.promise;
@@ -31,6 +32,7 @@ async function putOutToSea(settings, ipc) {
31
32
 
32
33
  //eslint-disable-next-line no-extra-boolean-cast
33
34
  if (!!settings.HOOK_SHUTDOWN) {
35
+ logger.trace('Running hook shutdown');
34
36
  disconnectRequired = false;
35
37
  //eslint-disable-next-line no-empty-function
36
38
  sailor.reportError = () => {