Skip to content

Commit

Permalink
print node version (#1348)
Browse files Browse the repository at this point in the history
* print node version

* update logger info

* update with node name

Co-authored-by: Louise wang <[email protected]>
  • Loading branch information
bighammerw and Louise wang authored Oct 17, 2022
1 parent 20e8291 commit 291156d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/node/src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ import { ApiService } from './indexer/api.service';
import { FetchService } from './indexer/fetch.service';
import { ProjectService } from './indexer/project.service';
import { yargsOptions } from './yargs';
const pjson = require('../package.json');

const { argv } = yargsOptions;

const DEFAULT_PORT = 3000;
const logger = getLogger('subql-node');

export async function bootstrap() {
logger.info(`Current ${pjson.name} version is ${pjson.version}`);
const debug = argv.debug;

const validate = (x: any) => {
Expand Down

0 comments on commit 291156d

Please sign in to comment.