-logging
This commit is contained in:
parent
957f9a5efb
commit
1256c8704b
@ -1412,7 +1412,7 @@ testCli
|
||||
} else if (args.cryptoworker.impl === "none") {
|
||||
cryptoApi = nativeCrypto;
|
||||
} else {
|
||||
throw Error("invalid impl");
|
||||
throw Error(`invalid crypto worker type ${args.cryptoworker.impl}`);
|
||||
}
|
||||
|
||||
const input = "foo";
|
||||
|
@ -505,7 +505,6 @@ export async function updateExchangeFromUrlHandler(
|
||||
> {
|
||||
const forceNow = options.forceNow ?? false;
|
||||
logger.info(`updating exchange info for ${baseUrl}, forced: ${forceNow}`);
|
||||
console.trace("here");
|
||||
|
||||
const now = AbsoluteTime.now();
|
||||
baseUrl = canonicalizeBaseUrl(baseUrl);
|
||||
|
@ -589,9 +589,10 @@ async function fillDefaults(ws: InternalWalletState): Promise<void> {
|
||||
const appliedRec = await tx.config.get("currencyDefaultsApplied");
|
||||
let alreadyApplied = appliedRec ? !!appliedRec.value : false;
|
||||
if (alreadyApplied) {
|
||||
logger.info("defaults already applied");
|
||||
logger.trace("defaults already applied");
|
||||
return;
|
||||
}
|
||||
logger.info("importing default exchanges and auditors");
|
||||
for (const c of builtinAuditors) {
|
||||
await tx.auditorTrust.put(c);
|
||||
}
|
||||
@ -1120,12 +1121,12 @@ async function dispatchRequestInternal(
|
||||
// definitions we already have?
|
||||
switch (operation) {
|
||||
case "initWallet": {
|
||||
logger.info("initializing wallet");
|
||||
logger.trace("initializing wallet");
|
||||
ws.initCalled = true;
|
||||
if (typeof payload === "object" && (payload as any).skipDefaults) {
|
||||
logger.info("skipping defaults");
|
||||
logger.trace("skipping defaults");
|
||||
} else {
|
||||
logger.info("filling defaults");
|
||||
logger.trace("filling defaults");
|
||||
await fillDefaults(ws);
|
||||
}
|
||||
return {};
|
||||
|
Loading…
Reference in New Issue
Block a user