Skip to content

Commit

Permalink
pass ID as 2nd log parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
robertKozik committed May 14, 2024
1 parent d861104 commit dc3276e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/ExpensiMark.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ export default class ExpensiMark {
replacement: (match, g1, offset, string, extras) => {
const reportToNameMap = extras.reportIdToName;
if (!reportToNameMap || !reportToNameMap[g1]) {
Log.alert(`[ExpensiMark] Missing report name for ID: ${g1}`);
Log.alert('[ExpensiMark] Missing report name', {reportID: g1});
return '#Hidden';
}

Expand All @@ -487,7 +487,7 @@ export default class ExpensiMark {
replacement: (match, g1, offset, string, extras) => {
const accountToNameMap = extras.accountIdToName;
if (!accountToNameMap || !accountToNameMap[g1]) {
Log.alert(`[ExpensiMark] Missing account name for ID: ${g1}`);
Log.alert('[ExpensiMark] Missing account name', {accountID: g1});
return '@Hidden';
}

Expand Down Expand Up @@ -543,7 +543,7 @@ export default class ExpensiMark {
replacement: (match, g1, offset, string, extras) => {
const reportToNameMap = extras.reportIdToName;
if (!reportToNameMap || !reportToNameMap[g1]) {
Log.alert(`[ExpensiMark] Missing report name for ID: ${g1}`);
Log.alert('[ExpensiMark] Missing report name', {reportID: g1});
return '#Hidden';
}

Expand All @@ -556,7 +556,7 @@ export default class ExpensiMark {
replacement: (match, g1, offset, string, extras) => {
const accountToNameMap = extras.accountIdToName;
if (!accountToNameMap || !accountToNameMap[g1]) {
Log.alert(`[ExpensiMark] Missing account name for ID: ${g1}`);
Log.alert('[ExpensiMark] Missing account name', {accountID: g1});
return '@Hidden';
}

Expand Down

0 comments on commit dc3276e

Please sign in to comment.