Skip to content

Commit

Permalink
log testrunner version on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Jul 30, 2024
1 parent 0e2f801 commit d1c88db
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion testrunner/src/sitespeedio-testrunner.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import log from 'intel';
import nconf from 'nconf';
import os from 'node:os';
import { createRequire } from 'node:module';

import run from './testrunners/testrunner.js';
import runDocker from './testrunners/docker-testrunner.js';
import { queueHandler } from './queue/queuehandler.js';

const require = createRequire(import.meta.url);
const version = require('../package.json').version;

const logger = log.getLogger('sitespeedio.testrunner');

const queues = [];
Expand All @@ -30,7 +34,7 @@ export class SitespeedioTestRunner {
logger.info('No hostname found in configuration. Will use %s', hostname);
}

logger.info(`Starting testrunner ${hostname}`);
logger.info(`Starting testrunner ${hostname} version ${version}`);

const testRunners = [];
// Setup the queues for each job
Expand Down

0 comments on commit d1c88db

Please sign in to comment.