Improve faucet logging

This commit is contained in:
Simon Warta 2020-08-11 09:25:37 +02:00
parent 914652b6eb
commit 1a14230e8a
2 changed files with 2 additions and 1 deletions

View File

@ -45,4 +45,5 @@ export async function start(args: readonly string[]): Promise<void> {
console.info("Creating webserver ...");
const server = new Webserver(faucet, { nodeUrl: blockchainBaseUrl, chainId: chainId });
server.start(constants.port);
console.info(`Try "curl -sS http://localhost:${constants.port}/status | jq" to check the status.`);
}

View File

@ -119,7 +119,7 @@ export class Faucet {
public async refill(): Promise<void> {
if (this.logging) {
console.info(`Connected to network: ${this.readOnlyClient.getChainId()}`);
console.info(`Connected to network: ${await this.readOnlyClient.getChainId()}`);
console.info(`Tokens on network: ${this.loadTokenTickers().join(", ")}`);
}