Skip to content

Commit

Permalink
Add filename in script logging
Browse files Browse the repository at this point in the history
Co-authored-by: Pierre Top <ptop@octo.com>
  • Loading branch information
yahya and octo-topi committed Apr 6, 2022
1 parent 35fd07a commit c34ea0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const isLaunchedFromCommandLine = require.main === module;

async function main() {
try {
logger.debug('Start script... ');
logger.info(`Start script ${__filename}... `);
await copyAnswerKeDataToTemporaryTables();
logger.debug('End script: copy done successfully.');
} catch (error) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async function createAnswersBigintMigrationDatabaseStructures(knex) {
const isLaunchedFromCommandLine = require.main === module;

async function main() {
logger.info('Start script');
logger.info(`Start script ${__filename}... `);
await createAnswersBigintMigrationDatabaseStructures(knex);
logger.info('End script');
}
Expand Down

0 comments on commit c34ea0e

Please sign in to comment.