Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
hedi-edelbloute committed Mar 18, 2024
1 parent 710c38d commit ca22535
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
11 changes: 7 additions & 4 deletions libs/ledger-live-common/src/bot/cli.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
"use strict";

console.log("1");
import "../__tests__/test-helpers/environment";
console.log("2");
import { bot } from ".";

console.log("3");
const {
BOT_FILTER_CURRENCIES,
BOT_FILTER_FAMILIES,
BOT_DISABLED_CURRENCIES,
BOT_DISABLED_FAMILIES,
} = process.env;

console.log("4");
const arg: Partial<{
filter: Partial<{ currencies: string[]; families: string[]; mutation: string }>;
disabled: Partial<{ currencies: string[]; families: string[] }>;
Expand All @@ -23,7 +24,9 @@ if (BOT_FILTER_CURRENCIES) {
}

if (BOT_FILTER_FAMILIES) {
console.log("5");
arg.filter.families = BOT_FILTER_FAMILIES.split(",");
console.log("6");
}

if (BOT_DISABLED_CURRENCIES) {
Expand All @@ -33,5 +36,5 @@ if (BOT_DISABLED_CURRENCIES) {
if (BOT_DISABLED_FAMILIES) {
arg.disabled.families = BOT_DISABLED_FAMILIES.split(",");
}

console.log("7");
bot(arg);
1 change: 1 addition & 0 deletions libs/ledger-live-common/src/bot/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ export function getSpecs({ disabled, filter }) {
}

export async function bot({ disabled, filter }: Arg = {}): Promise<void> {
console.log("8");
const SEED = getEnv("SEED");
invariant(SEED, "SEED required");
const specsLogs: string[][] = [];
Expand Down

0 comments on commit ca22535

Please sign in to comment.