You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here the account name First NR account didn't have any double quotes around it, leading to an error condition.
But the logger object hadn't been initialised yet, resulting in an error.
bash
~/code/butler/src$ /home/goran/.nvm/versions/node/v18.4.0/bin/node ./butler.js -c config/production.yaml --new-relic-account-name First NR account --new-relic-account-id ACCOUNT --new-relic-api-key KEY
/home/goran/code/butler/src/globals.js:123
logger.error('Incorrect command line parameters: Number of New Relic account names/IDs/API keys must match.');
^
ReferenceError: Cannot access 'logger' before initialization
at Object.<anonymous> (/home/goran/code/butler/src/globals.js:123:5)
at Module._compile (node:internal/modules/cjs/loader:1112:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1166:10)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Module._load (node:internal/modules/cjs/loader:834:12)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/home/goran/code/butler/src/butler.js:6:17)
at Module._compile (node:internal/modules/cjs/loader:1112:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1166:10)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Module._load (node:internal/modules/cjs/loader:834:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47
The text was updated successfully, but these errors were encountered:
Here the account name
First NR account
didn't have any double quotes around it, leading to an error condition.But the logger object hadn't been initialised yet, resulting in an error.
bash
The text was updated successfully, but these errors were encountered: