Improve faucet logging
This commit is contained in:
parent
914652b6eb
commit
1a14230e8a
@ -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.`);
|
||||
}
|
||||
|
||||
@ -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(", ")}`);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user