Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Jan 7, 2025
1 parent 948c75d commit 7aaa63b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion server/src/database/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export async function saveTest(
* Update the status of the test
*/
export async function updateStatus(id, status) {
log.info('Update %s with %s', id, status);
logger.info('Update %s with %s', id, status);
const update = 'UPDATE sitespeed_io_test_runs SET status = $1 WHERE id = $2';
const values = [status, id];
try {
Expand Down
2 changes: 1 addition & 1 deletion server/src/middleware/validatescripting.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const validateScripting = (request, response, next) => {
try {
validRegEx = new RegExp(testDomain);
} catch (error) {
log.error('Could not use regular expression', error);
logger.error('Could not use regular expression', error);
request.inputValidationError = getText(
'error.nonmatchingdomain',
'',
Expand Down
2 changes: 1 addition & 1 deletion server/src/middleware/validateurl.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const validateURL = (request, response, next) => {
return next();
}
} catch (error) {
log.error('Could not use the regular expression', error);
logger.error('Could not use the regular expression', error);
request.inputValidationError = getText(
'error.nonmatchingdomain',
url,
Expand Down
6 changes: 3 additions & 3 deletions server/src/util/add-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async function getDefaultSitespeedConfiguration() {
const result = await readFile(
path.resolve(nconf.get('defaultSitespeedioConfigFile'))
);
log.info('Using configiguration from defaultSitespeedioConfigFile');
logger.info('Using configiguration from defaultSitespeedioConfigFile');
return JSON.parse(result.toString());
} else return nconf.get('sitespeed.io') || {};
}
Expand Down Expand Up @@ -153,7 +153,7 @@ export async function addTest(request) {
}
);
} catch (error) {
log.error(
logger.error(
`Setting status to failed for ${jobId} because queue is down`,
error
);
Expand Down Expand Up @@ -240,7 +240,7 @@ export async function addTestFromAPI(
jobConfig
);
} catch (error) {
log.error(
logger.error(
`Setting status to failed for ${jobId} because queue is down`,
error
);
Expand Down

0 comments on commit 7aaa63b

Please sign in to comment.