Skip to content

Commit

Permalink
fix: used env variable instead of hardcode datetime format
Browse files Browse the repository at this point in the history
  • Loading branch information
theCuriousOne committed Jan 19, 2022
1 parent b902551 commit d66b645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Utility.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ var Utility = module.exports = {
if (cst.PM2_LOG_DATE_FORMAT && typeof cst.PM2_LOG_DATE_FORMAT == 'string') {
// Generate timestamp prefix
function timestamp(){
return `${dayjs(Date.now()).format('YYYY-MM-DDTHH:mm:ss')}:`;
return `${dayjs(Date.now()).format(cst.PM2_LOG_DATE_FORMAT)}:`;
}

var hacks = ['info', 'log', 'error', 'warn'], consoled = {};
Expand Down

0 comments on commit d66b645

Please sign in to comment.