Skip to content

Commit

Permalink
unify logging
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed May 25, 2024
1 parent 6735b77 commit 7f1249d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/config/dockertestrunner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ redis:
password: jgsay7f2fgfgda6acCa7g()jaba51!

# Verbose log level or not
logging:
log:
verbose: true

# The default sitespeed.io configuration file used by the sitespeed.io instance
Expand Down
2 changes: 1 addition & 1 deletion testrunner/config/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ redis:
password: jgsay7f2fgfgda6acCa7g()jaba51!

# Verbose log level or not
logging:
log:
verbose: false

# The default sitespeed.io configuration file used by the sitespeed.io instance
Expand Down
2 changes: 1 addition & 1 deletion testrunner/src/sitespeedio-testrunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const queues = [];

export class SitespeedioTestRunner {
constructor() {
const logVerbose = nconf.get('logging:verbose');
const logVerbose = nconf.get('log:verbose');

log.basicConfig({
format: '[%(date)s] %(levelname)s: [%(name)s] %(message)s',
Expand Down
2 changes: 1 addition & 1 deletion testrunner/src/validateconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const dockerSchema = Joi.object({
const configSchema = Joi.object({
location: locationSchema.required(),
redis: redisSchema.required(),
logging: loggingSchema.required(),
log: loggingSchema.required(),
sitespeedioConfigFile: Joi.string().optional(),
workingDirectory: Joi.string().optional(),
executable: Joi.string().required(),
Expand Down

0 comments on commit 7f1249d

Please sign in to comment.