Skip to content

Commit

Permalink
fix: logger instance
Browse files Browse the repository at this point in the history
  • Loading branch information
aman19K committed Jan 8, 2024
1 parent 8929f71 commit 2763ddf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ export function entryCreateScript(contentType) {
task: async () => {
//logger file
if(!fs.existsSync(path.join(filePath, 'entry-migration'))){
log = new LoggerService(filePath, 'entry-migration');
logger = new LoggerService(filePath, 'entry-migration');
}
const compareBranchEntries = await managementAPIClient
Expand Down Expand Up @@ -529,7 +529,7 @@ export function entryCreateScript(contentType) {
}else{
errorMsg += (err?.entry?.errorMessage || err?.errorMessage || err?.message) ?? 'Something went wrong!';
}
log.error(errorMsg)
logger.error(errorMsg)
});
}
Expand Down Expand Up @@ -571,7 +571,7 @@ export function entryCreateScript(contentType) {
}else{
errorMsg += (err?.entry?.errorMessage || err?.errorMessage || err?.message) ?? 'Something went wrong!';
}
log.error(errorMsg)
logger.error(errorMsg)
});
if(createdEntry){
if (flag.references) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ export function entryCreateUpdateScript(contentType) {
task: async () => {
//logger file
if(!fs.existsSync(path.join(filePath, 'entry-migration'))){
log = new LoggerService(filePath, 'entry-migration');
logger = new LoggerService(filePath, 'entry-migration');
}
let compareBranchEntries = await managementAPIClient
.stack({ api_key: stackSDKInstance.api_key, branch_uid: compareBranch })
Expand Down Expand Up @@ -548,7 +548,7 @@ export function entryCreateUpdateScript(contentType) {
}else{
errorMsg += (err?.entry?.errorMessage || err?.errorMessage || err?.message) ?? 'Something went wrong!';
}
log.error(errorMsg)
logger.error(errorMsg)
});
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ export function entryUpdateScript(contentType) {
task: async () => {
//logger file
if(!fs.existsSync(path.join(filePath, 'entry-migration'))){
log = new LoggerService(filePath, 'entry-migration');
logger = new LoggerService(filePath, 'entry-migration');
}
let compareBranchEntries = await managementAPIClient
Expand Down Expand Up @@ -547,7 +547,7 @@ export function entryUpdateScript(contentType) {
}else{
errorMsg += (err?.entry?.errorMessage || err?.errorMessage || err?.message) ?? 'Something went wrong!';
}
log.error(errorMsg)
logger.error(errorMsg)
});
}
Expand Down

0 comments on commit 2763ddf

Please sign in to comment.