Implement api nanny mode to help with heavy api usage

This commit is contained in:
FoxxMD
2021-07-20 20:15:15 -04:00
parent 4642f67104
commit 9316019b01
6 changed files with 268 additions and 27 deletions

View File

@@ -42,7 +42,6 @@ const program = new Command();
(async function () {
try {
debugger;
preRunCmd.parse(process.argv);
const { operatorConfig = process.env.OPERATOR_CONFIG } = preRunCmd.opts();
try {
@@ -199,7 +198,6 @@ const program = new Command();
await program.parseAsync();
} catch (err) {
debugger;
if(!err.logged && !(err instanceof LoggedError)) {
const logger = winston.loggers.get('default');
if (err.name === 'StatusCodeError' && err.response !== undefined) {