Remove noisy test logs

This commit is contained in:
Franck Royer 2021-04-06 11:00:40 +10:00
parent 71a324dd3c
commit eb9f1c154b
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 6 additions and 3 deletions

View File

@ -3,6 +3,7 @@ import { randomInt } from 'crypto';
import appRoot from 'app-root-path';
import axios from 'axios';
import debug from 'debug';
import Multiaddr from 'multiaddr';
import multiaddr from 'multiaddr';
import PeerId from 'peer-id';
@ -13,6 +14,8 @@ import { RelayDefaultTopic } from '../lib/waku_relay';
import { existsAsync, mkdirAsync, openAsync } from './async_fs';
import waitForLine from './log_file';
const dbg = debug('nim-waku');
const NIM_WAKU_DEFAULT_P2P_PORT = 60000;
const NIM_WAKU_DEFAULT_RPC_PORT = 8545;
const NIM_WAKU_DIR = appRoot + '/nim-waku';
@ -88,14 +91,14 @@ export class NimWaku {
],
});
this.pid = this.process.pid;
console.log(
dbg(
`nim-waku ${
this.process.pid
} started at ${new Date().toLocaleTimeString()}`
);
this.process.on('exit', (signal) => {
console.log(
dbg(
`nim-waku ${
this.process ? this.process.pid : this.pid
} process exited with ${signal} at ${new Date().toLocaleTimeString()}`
@ -114,7 +117,7 @@ export class NimWaku {
}
public stop() {
console.log(
debug(
`nim-waku ${
this.process ? this.process.pid : this.pid
} getting SIGINT at ${new Date().toLocaleTimeString()}`