diff --git a/examples/bitcoin/test/setup.ts b/examples/bitcoin/test/setup.ts index 28661b4756..65cdb77d89 100644 --- a/examples/bitcoin/test/setup.ts +++ b/examples/bitcoin/test/setup.ts @@ -28,13 +28,13 @@ export async function startBitcoinDaemon(): Promise { } }); - console.log(`starting bitcoind...`); + console.info(`starting bitcoind...`); await new Promise((resolve) => setTimeout(resolve, 5000)); return bitcoinDaemon; } export function createBitcoinWallet(wallets: Wallets): void { - console.log(' - create bitcoin wallet'); + console.info(' - create bitcoin wallet'); bitcoinCli.createWallet(); Object.entries(wallets).forEach(([name, wallet]) => { bitcoinCli.importPrivateKey(wallet.wif, name); @@ -42,12 +42,12 @@ export function createBitcoinWallet(wallets: Wallets): void { } export async function mine101Blocks(wallets: Wallets): Promise { - console.log(' - mine blocks'); + console.info(' - mine blocks'); await bitcoinCli.generateToAddress(101, wallets.alice.p2wpkh); } export function getEarliestUtxo(): Utxo { - console.log(' - get earliest utxo'); + console.info(' - get earliest utxo'); const utxos = bitcoinCli.listUnspent(); if (utxos.length === 0) { throw "There aren't any UTXOs after mining 101 blocks. Something went wrong"; @@ -56,7 +56,7 @@ export function getEarliestUtxo(): Utxo { } export function createTransaction(from: Utxo, wallets: Wallets): string { - console.log(' - get create transaction'); + console.info(' - get create transaction'); const input: TxInput = { txid: from.txid, vout: from.vout @@ -69,6 +69,6 @@ export function createTransaction(from: Utxo, wallets: Wallets): string { } export function signTransaction(rawTransaction: string): string { - console.log(' - sign transaction'); + console.info(' - sign transaction'); return bitcoinCli.signRawTransactionWithWallet(rawTransaction).hex; } diff --git a/examples/bitcoin_psbt/scripts/bitcoin/transaction_count.js b/examples/bitcoin_psbt/scripts/bitcoin/transaction_count.js index c70c2b7a64..73be941ef7 100644 --- a/examples/bitcoin_psbt/scripts/bitcoin/transaction_count.js +++ b/examples/bitcoin_psbt/scripts/bitcoin/transaction_count.js @@ -17,7 +17,7 @@ function getBlockTransactionCount() { execSync(`${CLI} getblock ${blockHash}`).toString() ); const transactionCount = blockInfo.tx.length; - console.log( + console.info( `Block ${i} (${blockHash}) has ${transactionCount} transactions.` ); } diff --git a/examples/ckbtc/test/test.ts b/examples/ckbtc/test/test.ts index b230414d21..851499ccc7 100644 --- a/examples/ckbtc/test/test.ts +++ b/examples/ckbtc/test/test.ts @@ -61,7 +61,7 @@ async function startBitcoinDaemon(): Promise { } }); - console.log(`starting bitcoind...`); + console.info(`starting bitcoind...`); await new Promise((resolve) => setTimeout(resolve, 5000)); return bitcoinDaemon; } diff --git a/examples/ckbtc/wallet/frontend/elements/ck-app.ts b/examples/ckbtc/wallet/frontend/elements/ck-app.ts index 6526902d42..7a92542728 100644 --- a/examples/ckbtc/wallet/frontend/elements/ck-app.ts +++ b/examples/ckbtc/wallet/frontend/elements/ck-app.ts @@ -97,7 +97,7 @@ export class CkApp extends LitElement { const result = await this.walletBackend.getBalance(); - console.log('getBalance', result); + console.info('getBalance', result); this.balance = result; } @@ -110,7 +110,7 @@ export class CkApp extends LitElement { const result = await this.walletBackend.getDepositAddress(); - console.log('getBitcoinDepositAddress', result); + console.info('getBitcoinDepositAddress', result); this.bitcoinDepositAddress = result; } @@ -125,7 +125,7 @@ export class CkApp extends LitElement { const result = await this.walletBackend.updateBalance(); - console.log('updateBalance', result); + console.info('updateBalance', result); await this.getBalance(); @@ -150,7 +150,7 @@ export class CkApp extends LitElement { this.transferAmount ); - console.log('transfer', result); + console.info('transfer', result); await this.getBalance(); diff --git a/examples/heartbeat/src/heartbeat_async/index.ts b/examples/heartbeat/src/heartbeat_async/index.ts index 56f5cd91f5..ff106bfb19 100644 --- a/examples/heartbeat/src/heartbeat_async/index.ts +++ b/examples/heartbeat/src/heartbeat_async/index.ts @@ -8,7 +8,7 @@ export default Canister({ const randomness = await getRandomness(); initialized = randomness; - console.log('heartbeat initialized', randomness.length); + console.info('heartbeat initialized', randomness.length); }), getInitialized: query([], blob, () => { return initialized; diff --git a/examples/heartbeat/src/heartbeat_sync/index.ts b/examples/heartbeat/src/heartbeat_sync/index.ts index 1ce6aa563d..8a9582d8bb 100644 --- a/examples/heartbeat/src/heartbeat_sync/index.ts +++ b/examples/heartbeat/src/heartbeat_sync/index.ts @@ -5,7 +5,7 @@ let initialized = false; export default Canister({ heartbeat: heartbeat(() => { initialized = true; - console.log('heartbeat initialized', initialized); + console.info('heartbeat initialized', initialized); }), getInitialized: query([], bool, () => { return initialized; diff --git a/examples/inspect_message/src/index.ts b/examples/inspect_message/src/index.ts index 8fb8f4c894..575150e685 100644 --- a/examples/inspect_message/src/index.ts +++ b/examples/inspect_message/src/index.ts @@ -2,7 +2,7 @@ import { bool, Canister, ic, inspectMessage, update } from 'azle/experimental'; export default Canister({ inspectMessage: inspectMessage(() => { - console.log('inspectMessage called'); + console.info('inspectMessage called'); if (ic.methodName() === 'accessible') { ic.acceptMessage(); diff --git a/examples/internet_identity/test/tests.ts b/examples/internet_identity/test/tests.ts index e352f6f075..398532ba53 100644 --- a/examples/internet_identity/test/tests.ts +++ b/examples/internet_identity/test/tests.ts @@ -13,7 +13,7 @@ export function getTests(canisterName: string): Test { page.on('console', (message) => { for (const arg of message.args()) { - console.log(`Puppetteer log: ${arg}`); + console.info(`Puppetteer log: ${arg}`); } }); diff --git a/examples/motoko_examples/hello-world/src/index.ts b/examples/motoko_examples/hello-world/src/index.ts index b797a95fd3..b10311470e 100644 --- a/examples/motoko_examples/hello-world/src/index.ts +++ b/examples/motoko_examples/hello-world/src/index.ts @@ -2,6 +2,6 @@ import { Canister, query, Void } from 'azle/experimental'; export default Canister({ main: query([], Void, () => { - console.log('Hello World!'); + console.info('Hello World!'); }) }); diff --git a/examples/open_value_sharing/src/consumer.ts b/examples/open_value_sharing/src/consumer.ts index cfba2de1ac..dea06f4891 100644 --- a/examples/open_value_sharing/src/consumer.ts +++ b/examples/open_value_sharing/src/consumer.ts @@ -17,7 +17,7 @@ app.post('/test-long-running', async (req, res) => { }); if (i % 1_000 === 0) { - console.log(`1_000 records inserted`); + console.info(`1_000 records inserted`); } if (i % 30_000 === 0) { diff --git a/examples/open_value_sharing/src/wallet.ts b/examples/open_value_sharing/src/wallet.ts index 233768348d..818027b595 100644 --- a/examples/open_value_sharing/src/wallet.ts +++ b/examples/open_value_sharing/src/wallet.ts @@ -46,8 +46,8 @@ export default Canister({ return payments; }), wallet_receive: update([Opt(ReceiveOptions)], Void, (_receiveOptions) => { - console.log('wallet_receive'); - console.log(`cycles available: ${ic.msgCyclesAvailable()}`); + console.info('wallet_receive'); + console.info(`cycles available: ${ic.msgCyclesAvailable()}`); const callerInWhitelist = principalsWhitelist.includes( ic.caller().toText() diff --git a/examples/pre_and_post_upgrade/src/index.ts b/examples/pre_and_post_upgrade/src/index.ts index 1ceaba311c..afed751e0a 100644 --- a/examples/pre_and_post_upgrade/src/index.ts +++ b/examples/pre_and_post_upgrade/src/index.ts @@ -27,12 +27,12 @@ let entries: { export default Canister({ init: init([], () => { - console.log('init'); + console.info('init'); stableStorage.insert('entries', []); }), postUpgrade: postUpgrade([], () => { - console.log('postUpgrade'); + console.info('postUpgrade'); const stableEntriesOpt = stableStorage.get('entries'); @@ -47,7 +47,7 @@ export default Canister({ }, {}); }), preUpgrade: preUpgrade(() => { - console.log('preUpgrade'); + console.info('preUpgrade'); stableStorage.insert( 'entries', diff --git a/examples/primitive_types/src/index.ts b/examples/primitive_types/src/index.ts index fac8000969..f9554a6c38 100644 --- a/examples/primitive_types/src/index.ts +++ b/examples/primitive_types/src/index.ts @@ -26,133 +26,133 @@ export default Canister({ return 'string'; }), printString: query([text], text, (string) => { - console.log(typeof string); + console.info(typeof string); return string; }), getText: query([], text, () => { return 'text'; }), printText: query([text], text, (text) => { - console.log(typeof text); + console.info(typeof text); return text; }), getNumber: query([], float64, () => { return Number.MAX_SAFE_INTEGER; }), printNumber: query([float64], float64, (number) => { - console.log(typeof number); + console.info(typeof number); return number; }), getInt: query([], int, () => { return 170_141_183_460_469_231_731_687_303_715_884_105_727n; }), printInt: query([int], int, (int) => { - console.log(typeof int); + console.info(typeof int); return int; }), getInt64: query([], int64, () => { return 9_223_372_036_854_775_807n; }), printInt64: query([int64], int64, (int64) => { - console.log(typeof int64); + console.info(typeof int64); return int64; }), getInt32: query([], int32, () => { return 2_147_483_647; }), printInt32: query([int32], int32, (int32) => { - console.log(typeof int32); + console.info(typeof int32); return int32; }), getInt16: query([], int16, () => { return 32_767; }), printInt16: query([int16], int16, (int16) => { - console.log(typeof int16); + console.info(typeof int16); return int16; }), getInt8: query([], int8, () => { return 127; }), printInt8: query([int8], int8, (int8) => { - console.log(typeof int8); + console.info(typeof int8); return int8; }), getNat: query([], nat, () => { return 340_282_366_920_938_463_463_374_607_431_768_211_455n; }), printNat: query([nat], nat, (nat) => { - console.log(typeof nat); + console.info(typeof nat); return nat; }), getNat64: query([], nat64, () => { return 18_446_744_073_709_551_615n; }), printNat64: query([nat64], nat64, (nat64) => { - console.log(typeof nat64); + console.info(typeof nat64); return nat64; }), getNat32: query([], nat32, () => { return 4_294_967_295; }), printNat32: query([nat32], nat32, (nat32) => { - console.log(typeof nat32); + console.info(typeof nat32); return nat32; }), getNat16: query([], nat16, () => { return 65_535; }), printNat16: query([nat16], nat16, (nat16) => { - console.log(typeof nat16); + console.info(typeof nat16); return nat16; }), getNat8: query([], nat8, () => { return 255; }), printNat8: query([nat8], nat8, (nat8) => { - console.log(typeof nat8); + console.info(typeof nat8); return nat8; }), getFloat64: query([], float64, () => { return Math.E; }), printFloat64: query([float64], float64, (float64) => { - console.log(typeof float64); + console.info(typeof float64); return float64; }), getFloat32: query([], float32, () => { return Math.PI; }), printFloat32: query([float32], float32, (float32) => { - console.log(typeof float32); + console.info(typeof float32); return float32; }), getBool: query([], bool, () => { return true; }), printBool: query([bool], bool, (bool) => { - console.log(typeof bool); + console.info(typeof bool); return bool; }), getPrincipal: query([], Principal, () => { return Principal.fromText('rrkah-fqaaa-aaaaa-aaaaq-cai'); }), printPrincipal: query([Principal], Principal, (principal) => { - console.log(typeof principal); + console.info(typeof principal); return principal; }), getNull: query([], Null, () => { return null; }), printNull: query([Null], Null, (Null) => { - console.log(typeof Null); + console.info(typeof Null); return Null; }), getReserved: query([], reserved, () => { return 'anything'; }), printReserved: query([reserved], reserved, (reserved) => { - console.log(typeof reserved); + console.info(typeof reserved); return reserved; }), getEmpty: query([], empty, () => { @@ -161,7 +161,7 @@ export default Canister({ // Note: It is impossible to call this function because it requires an argument // but there is no way to pass an "empty" value as an argument. printEmpty: query([empty], empty, (empty) => { - console.log(typeof empty); + console.info(typeof empty); throw 'Anything you want'; }) }); diff --git a/examples/robust_imports/src/azle_coverage/index.ts b/examples/robust_imports/src/azle_coverage/index.ts index e18e6f93ec..dd0de26419 100644 --- a/examples/robust_imports/src/azle_coverage/index.ts +++ b/examples/robust_imports/src/azle_coverage/index.ts @@ -171,7 +171,7 @@ export const buyHoneydew = honeydew(() => { }); export const keepIlamaClean = ilama(() => { - console.log(`Method "${lemon.methodName()}" was called`); + console.info(`Method "${lemon.methodName()}" was called`); if (lemon.methodName() === 'dirtyIlama') { return; } diff --git a/examples/robust_imports/src/ts_primitives/index.ts b/examples/robust_imports/src/ts_primitives/index.ts index c1a9fbbc05..e3199d5cd1 100644 --- a/examples/robust_imports/src/ts_primitives/index.ts +++ b/examples/robust_imports/src/ts_primitives/index.ts @@ -12,7 +12,7 @@ export const checkPrimAliases = query( MyVoid, (param1, param2, param3, param4, param5) => { if (param1) { - console.log(`${param2}, ${param3}, ${param4}, ${param5}`); + console.info(`${param2}, ${param3}, ${param4}, ${param5}`); } } ); diff --git a/examples/robust_imports/src/type_alias_decls/index.ts b/examples/robust_imports/src/type_alias_decls/index.ts index db3b137953..86189a5170 100644 --- a/examples/robust_imports/src/type_alias_decls/index.ts +++ b/examples/robust_imports/src/type_alias_decls/index.ts @@ -102,7 +102,7 @@ export const simpleDeepQuery = types.Deep$queryAlias( [], types.VoidAlias, () => { - console.log(HELLO_WORLD); + console.info(HELLO_WORLD); } ); @@ -110,12 +110,12 @@ export const simpleAzleQuery = types.Azle$queryAlias( [], types.VoidAlias, () => { - console.log(HELLO_WORLD); + console.info(HELLO_WORLD); } ); export const simpleQuery = types.$queryAlias([], types.VoidAlias, () => { - console.log(HELLO_WORLD); + console.info(HELLO_WORLD); }); const AliasedCanister = types.DeepCanisterAlias({ diff --git a/examples/run_time_errors/src/throws.ts b/examples/run_time_errors/src/throws.ts index 62b4d1839e..e390847152 100644 --- a/examples/run_time_errors/src/throws.ts +++ b/examples/run_time_errors/src/throws.ts @@ -74,7 +74,7 @@ export function heartbeat(canister: RunTimeErrorService): void { } export function inspectMessage(): void { - console.log('inspectMessage called'); + console.info('inspectMessage called'); if ( ic.methodName() !== 'inaccessible' || @@ -114,11 +114,11 @@ export function alsoInaccessible(): boolean { // } // export function preUpgrade(): PreUpgrade { -// console.log('preUpgrade'); +// console.info('preUpgrade'); // throw 'We are throwing in the pre-upgrade'; // } // export function postUpgrade(): PostUpgrade { -// console.log('postUpgrade'); +// console.info('postUpgrade'); // throw 'We are throwing in the post-upgrade'; // } diff --git a/examples/sqlite_typeorm/src/entities/posts/db.ts b/examples/sqlite_typeorm/src/entities/posts/db.ts index a5ff2e0317..9ebb2c0d5a 100644 --- a/examples/sqlite_typeorm/src/entities/posts/db.ts +++ b/examples/sqlite_typeorm/src/entities/posts/db.ts @@ -69,7 +69,7 @@ export async function createPost(postCreate: PostCreate): Promise { } export async function updatePost(postUpdate: PostUpdate): Promise { - console.log('postUpdate', postUpdate); + console.info('postUpdate', postUpdate); await Post.update(postUpdate.id, { title: postUpdate.title, diff --git a/examples/sqlite_typeorm/src/entities/posts/router.ts b/examples/sqlite_typeorm/src/entities/posts/router.ts index a9b29b426a..c9520b72ae 100644 --- a/examples/sqlite_typeorm/src/entities/posts/router.ts +++ b/examples/sqlite_typeorm/src/entities/posts/router.ts @@ -38,7 +38,7 @@ export function getRouter(): Router { const post = await getPost(Number(id)); - console.log('post', post); + console.info('post', post); res.json(post); }); diff --git a/examples/timers/src/timers.ts b/examples/timers/src/timers.ts index 6ea0fdc42b..3adde97da9 100644 --- a/examples/timers/src/timers.ts +++ b/examples/timers/src/timers.ts @@ -45,7 +45,7 @@ let statusReport: StatusReport = { export default Canister({ clearTimer: update([nat64], Void, (timerId) => { ic.clearTimer(timerId); - console.log(`timer ${timerId} cancelled`); + console.info(`timer ${timerId} cancelled`); }), setTimers: update([nat64, nat64], TimerIds, (delay, interval) => { const capturedValue = 'šŸš©'; @@ -54,17 +54,17 @@ export default Canister({ const inlineId = ic.setTimer(delay, () => { statusReport.inline = 1; - console.log('Inline timer called'); + console.info('Inline timer called'); }); const captureId = ic.setTimer(delay, () => { statusReport.capture = capturedValue; - console.log(`Timer captured value ${capturedValue}`); + console.info(`Timer captured value ${capturedValue}`); }); const repeatId = ic.setTimerInterval(interval, () => { statusReport.repeat++; - console.log(`Repeating timer. Call ${statusReport.repeat}`); + console.info(`Repeating timer. Call ${statusReport.repeat}`); }); const singleCrossCanisterId = ic.setTimer( @@ -93,17 +93,17 @@ export default Canister({ function oneTimeTimerCallback(): void { statusReport.single = true; - console.log('oneTimeTimerCallback called'); + console.info('oneTimeTimerCallback called'); } async function singleCrossCanisterTimerCallback(): Promise { - console.log('singleCrossCanisterTimerCallback'); + console.info('singleCrossCanisterTimerCallback'); statusReport.singleCrossCanister = await getRandomness(); } async function repeatCrossCanisterTimerCallback(): Promise { - console.log('repeatCrossCanisterTimerCallback'); + console.info('repeatCrossCanisterTimerCallback'); statusReport.repeatCrossCanister = Uint8Array.from([ ...statusReport.repeatCrossCanister, diff --git a/property_tests/are_params_correctly_ordered.ts b/property_tests/are_params_correctly_ordered.ts index e239a3b5d7..c449ba9c00 100644 --- a/property_tests/are_params_correctly_ordered.ts +++ b/property_tests/are_params_correctly_ordered.ts @@ -11,7 +11,7 @@ export function areParamsCorrectlyOrdered( ${name}, ${value.src.valueLiteral} )`; - return `if (!${areEqual}) {console.log('value', ${name}, 'expected', ${value.src.valueLiteral}); throw new Error('${name} is incorrectly ordered');}`; + return `if (!${areEqual}) {console.info('value', ${name}, 'expected', ${value.src.valueLiteral}); throw new Error('${name} is incorrectly ordered');}`; }) .join('\n'); } diff --git a/property_tests/index.ts b/property_tests/index.ts index 2926674e2e..f5b4d56b14 100644 --- a/property_tests/index.ts +++ b/property_tests/index.ts @@ -130,9 +130,9 @@ export function deepEqual(a: any, b: any): boolean { const result = libraryDeepEqual(a, b); if (result === false) { - console.log('deepEqual returned false'); - console.log('deepEqual value a', a); - console.log('deepEqual value b', b); + console.info('deepEqual returned false'); + console.info('deepEqual value a', a); + console.info('deepEqual value b', b); } return result; diff --git a/scripts/add_metadata_to_dfx_json.js b/scripts/add_metadata_to_dfx_json.js index 161944ac51..4896743367 100644 --- a/scripts/add_metadata_to_dfx_json.js +++ b/scripts/add_metadata_to_dfx_json.js @@ -36,7 +36,7 @@ function updateDfxJson(filePath) { } fs.writeFileSync(filePath, JSON.stringify(json, null, 4), 'utf8'); - console.log(`Updated ${filePath}`); + console.info(`Updated ${filePath}`); } catch (err) { console.error(`Error processing file ${filePath}: ${err}`); } diff --git a/scripts/class_migration/add_example_dependency.js b/scripts/class_migration/add_example_dependency.js index 938fba84ad..efb6022ff4 100644 --- a/scripts/class_migration/add_example_dependency.js +++ b/scripts/class_migration/add_example_dependency.js @@ -46,7 +46,7 @@ fs.readFile(packageJsonPath, 'utf8', (err, data) => { return; } - console.log( + console.info( `package.json successfully updated with new dev dependency: ${newDependencyName}` ); } diff --git a/scripts/class_migration/change_to_custom_candid_gen.js b/scripts/class_migration/change_to_custom_candid_gen.js index 6ae6d69dde..cdecefa4a1 100644 --- a/scripts/class_migration/change_to_custom_candid_gen.js +++ b/scripts/class_migration/change_to_custom_candid_gen.js @@ -67,7 +67,7 @@ fs.readFile(dfxJsonPath, 'utf8', (err, data) => { return; } - console.log('dfx.json successfully updated.'); + console.info('dfx.json successfully updated.'); } ); } else { diff --git a/scripts/class_migration/clean_package.js b/scripts/class_migration/clean_package.js index 3141c03213..caa9f4a7e1 100644 --- a/scripts/class_migration/clean_package.js +++ b/scripts/class_migration/clean_package.js @@ -12,11 +12,11 @@ const removeDirectory = (dirPath) => { if (err) { console.error(`Error removing directory ${dirPath}: ${err}`); } else { - console.log(`Successfully removed directory: ${dirPath}`); + console.info(`Successfully removed directory: ${dirPath}`); } }); } else { - console.log(`Directory not found: ${dirPath}`); + console.info(`Directory not found: ${dirPath}`); } }; diff --git a/scripts/class_migration/copy_generated_candid_from_example.js b/scripts/class_migration/copy_generated_candid_from_example.js index 2c5cf31cdc..319a2fc8e5 100644 --- a/scripts/class_migration/copy_generated_candid_from_example.js +++ b/scripts/class_migration/copy_generated_candid_from_example.js @@ -8,7 +8,7 @@ const copyFile = (src, dest) => { if (err) { console.error(`Error copying file from ${src} to ${dest}: ${err}`); } else { - console.log(`File copied from ${src} to ${dest}`); + console.info(`File copied from ${src} to ${dest}`); } }); }; diff --git a/scripts/class_migration/delete_tests_file.js b/scripts/class_migration/delete_tests_file.js index 7dfa293f25..41ce1d8dbc 100644 --- a/scripts/class_migration/delete_tests_file.js +++ b/scripts/class_migration/delete_tests_file.js @@ -9,11 +9,11 @@ const testsFilePath = path.join(process.cwd(), 'test', 'tests.ts'); const deleteFile = (filePath) => { fs.unlink(filePath, (err) => { if (err && err.code === 'ENOENT') { - console.log(`File not found: ${filePath}`); + console.info(`File not found: ${filePath}`); } else if (err) { console.error(`Error deleting file ${filePath}: ${err}`); } else { - console.log(`Successfully deleted file: ${filePath}`); + console.info(`Successfully deleted file: ${filePath}`); } }); }; diff --git a/scripts/class_migration/do_all_packages.js b/scripts/class_migration/do_all_packages.js index 3b333303eb..852ea29f17 100755 --- a/scripts/class_migration/do_all_packages.js +++ b/scripts/class_migration/do_all_packages.js @@ -17,7 +17,7 @@ if (!updateScriptPath) { process.exit(1); } const fullScriptPath = path.resolve(updateScriptPath); -console.log(fullScriptPath); +console.info(fullScriptPath); // Read all subdirectories in the current directory fs.readdir(currentDirectory, (err, files) => { @@ -50,10 +50,10 @@ fs.readdir(currentDirectory, (err, files) => { return; } - console.log( + console.info( `Successfully updated package in directory ${file}` ); - console.log(stdout); + console.info(stdout); } ); } diff --git a/scripts/class_migration/modify_pretest.js b/scripts/class_migration/modify_pretest.js index 9164d69396..d6bd7b1adc 100644 --- a/scripts/class_migration/modify_pretest.js +++ b/scripts/class_migration/modify_pretest.js @@ -51,7 +51,7 @@ fs.readFile(pretestFilePath, 'utf8', (err, data) => { ); return; } else { - console.log('pretest.ts successfully modified.'); + console.info('pretest.ts successfully modified.'); } }); }); diff --git a/scripts/class_migration/name_package.js b/scripts/class_migration/name_package.js index 079f0ea294..629f285ecd 100644 --- a/scripts/class_migration/name_package.js +++ b/scripts/class_migration/name_package.js @@ -30,7 +30,7 @@ fs.readFile(packageJsonPath, 'utf8', (err, data) => { const hasExpressDependency = packageJson.dependencies && packageJson.dependencies.express; if (hasExpressDependency) { - console.log( + console.info( 'Express is listed as a dependency. No changes will be made.' ); return; @@ -54,7 +54,7 @@ fs.readFile(packageJsonPath, 'utf8', (err, data) => { ); return; } - console.log( + console.info( `package.json successfully updated with new name: ${newName}` ); } diff --git a/scripts/class_migration/update_test.js b/scripts/class_migration/update_test.js index 62b0e3cac3..662b34c3da 100644 --- a/scripts/class_migration/update_test.js +++ b/scripts/class_migration/update_test.js @@ -33,6 +33,6 @@ fs.readFile(testFilePath, 'utf8', (err, data) => { return; } - console.log('test.ts successfully modified.'); + console.info('test.ts successfully modified.'); }); }); diff --git a/scripts/class_migration/update_ts_config.js b/scripts/class_migration/update_ts_config.js index 6f82a2c6b6..e7bc5dcbad 100644 --- a/scripts/class_migration/update_ts_config.js +++ b/scripts/class_migration/update_ts_config.js @@ -40,7 +40,7 @@ fs.readFile(tsconfigPath, 'utf8', (err, data) => { return; } - console.log( + console.info( 'tsconfig.json successfully updated with experimentalDecorators and preserveSymlinks options.' ); } diff --git a/scripts/class_migration/update_typescript.js b/scripts/class_migration/update_typescript.js index 73fa6cad87..cb3bf4dd4b 100644 --- a/scripts/class_migration/update_typescript.js +++ b/scripts/class_migration/update_typescript.js @@ -57,7 +57,7 @@ fs.readFile(packageJsonPath, 'utf8', (err, data) => { return; } - console.log( + console.info( `package.json successfully updated with TypeScript version: ${tsVersion}` ); @@ -71,8 +71,8 @@ fs.readFile(packageJsonPath, 'utf8', (err, data) => { return; } - console.log('npm install completed successfully'); - console.log(stdout); + console.info('npm install completed successfully'); + console.info(stdout); // Delete node_modules if it did not exist before if (!nodeModulesExists) { @@ -85,7 +85,7 @@ fs.readFile(packageJsonPath, 'utf8', (err, data) => { `Error removing node_modules directory: ${rmErr}` ); } else { - console.log( + console.info( 'node_modules directory removed as it did not exist before running the script.' ); } diff --git a/scripts/reorder_dfx_json.js b/scripts/reorder_dfx_json.js index 4d831a2ac8..0ccf13af6c 100644 --- a/scripts/reorder_dfx_json.js +++ b/scripts/reorder_dfx_json.js @@ -57,7 +57,7 @@ fs.readdir(dirPath, (err, folders) => { return fs.writeJson(dfxJsonPath, dfxConfig, { spaces: 4 }); }) .then(() => { - console.log( + console.info( `Successfully reordered keys in ${dfxJsonPath}` ); }) diff --git a/scripts/simplify_tsconfig.js b/scripts/simplify_tsconfig.js index caaba3d852..5868c9ecc9 100644 --- a/scripts/simplify_tsconfig.js +++ b/scripts/simplify_tsconfig.js @@ -15,7 +15,7 @@ const modifyTsConfig = (tsconfigPath) => { return fs.writeJson(tsconfigPath, tsconfig, { spaces: 4 }); }) .then(() => { - console.log(`Successfully modified ${tsconfigPath}`); + console.info(`Successfully modified ${tsconfigPath}`); }) .catch((err) => { console.error(`Error reading or writing tsconfig.json: ${err}`); diff --git a/scripts/tsx_migration/ts_node_to_tsx.js b/scripts/tsx_migration/ts_node_to_tsx.js index 04a11ba2e7..70041df649 100644 --- a/scripts/tsx_migration/ts_node_to_tsx.js +++ b/scripts/tsx_migration/ts_node_to_tsx.js @@ -53,7 +53,7 @@ fs.readFile(packageJsonPath, 'utf8', (err, data) => { } if (!tsNodeRemoved) { - console.log('ts-node not found in dependencies or devDependencies.'); + console.info('ts-node not found in dependencies or devDependencies.'); return; } @@ -70,7 +70,7 @@ fs.readFile(packageJsonPath, 'utf8', (err, data) => { return; } - console.log('package.json successfully updated.'); + console.info('package.json successfully updated.'); } ); }); diff --git a/scripts/update_dfx_json_main.js b/scripts/update_dfx_json_main.js index 8ebbcbf751..a9c2b51e3e 100644 --- a/scripts/update_dfx_json_main.js +++ b/scripts/update_dfx_json_main.js @@ -58,7 +58,7 @@ fs.readdir(examplesDir, { withFileTypes: true }, (err, entries) => { console.error(`Error writing updated dfx.json: ${err}`); return; } - console.log(`Successfully updated ${dfxFilePath}`); + console.info(`Successfully updated ${dfxFilePath}`); } ); }); diff --git a/src/compiler/file_uploader/on_before_exit.ts b/src/compiler/file_uploader/on_before_exit.ts index d88a51b6f5..e0ce3090f3 100644 --- a/src/compiler/file_uploader/on_before_exit.ts +++ b/src/compiler/file_uploader/on_before_exit.ts @@ -13,7 +13,7 @@ export function onBeforeExit(paths: [Src, Dest][], actor: UploaderActor): void { // If any async behavior happens in 'beforeExit' then 'beforeExit' // will run again. This is need to prevent an infinite loop. // Once clean up is complete we are ready to exit - console.log('File hashing finished'); + console.info('File hashing finished'); return; } diff --git a/src/compiler/generate_candid_and_canister_methods.ts b/src/compiler/generate_candid_and_canister_methods.ts index 941f8c9991..9361c7911c 100644 --- a/src/compiler/generate_candid_and_canister_methods.ts +++ b/src/compiler/generate_candid_and_canister_methods.ts @@ -38,7 +38,7 @@ export async function generateCandidAndCanisterMethods( len ); const message = new TextDecoder('utf8').decode(memory); - console.log(message); + console.info(message); }, global_timer_set: (): void => {}, instruction_counter: (): void => {}, @@ -81,7 +81,7 @@ export async function generateCandidAndCanisterMethods( // len // ); // const message = new TextDecoder('utf8').decode(memory); - // console.log(message); + // console.info(message); // } // } }); diff --git a/src/compiler/utils/result.ts b/src/compiler/utils/result.ts index 31875d8003..db5f6ca11b 100644 --- a/src/compiler/utils/result.ts +++ b/src/compiler/utils/result.ts @@ -41,6 +41,6 @@ function exitWithError(payload: AzleError): never { if (payload.suggestion) { console.error(`\n${payload.suggestion}`); } - console.log(`\nšŸ’€ Build failed`); + console.info(`\nšŸ’€ Build failed`); process.exit(payload.exitCode ?? 0); } diff --git a/src/lib/candid/did_file/visitor/visit/service.ts b/src/lib/candid/did_file/visitor/visit/service.ts index 07f583e237..89b26037d9 100644 --- a/src/lib/candid/did_file/visitor/visit/service.ts +++ b/src/lib/candid/did_file/visitor/visit/service.ts @@ -89,7 +89,7 @@ function getSystemMethod( ); if (result[0].length > 1) { - console.log( + console.info( `WARNING: too many ${methodName} methods detected. Expected no more than 1, found ${result[0].length}` ); } diff --git a/src/lib/canister_methods/execute_method.ts b/src/lib/canister_methods/execute_method.ts index ad3466a2da..aa9e21e65d 100644 --- a/src/lib/canister_methods/execute_method.ts +++ b/src/lib/canister_methods/execute_method.ts @@ -62,6 +62,6 @@ function getResult(args: any[], callback: any): any { function reportFinalInstructions(): void { if (process.env.AZLE_INSTRUCTION_COUNT === 'true') { - console.log(`final instructions: ${ic.instructionCounter()}`); + console.info(`final instructions: ${ic.instructionCounter()}`); } } diff --git a/src/lib/fetch/icp.ts b/src/lib/fetch/icp.ts index 62412cc551..1900d33929 100644 --- a/src/lib/fetch/icp.ts +++ b/src/lib/fetch/icp.ts @@ -32,8 +32,8 @@ export async function fetchIcp( idlFactory; } catch(error) { - console.log('eval error'); - console.log(error); + console.info('eval error'); + console.info(error); } `); diff --git a/src/lib/fetch/index.ts b/src/lib/fetch/index.ts index a6fc896c4e..7e6cbcc4e2 100644 --- a/src/lib/fetch/index.ts +++ b/src/lib/fetch/index.ts @@ -15,7 +15,7 @@ export async function azleFetch( logWarnings(init); if (process.env.AZLE_TEST_FETCH === 'true') { - console.log('azleFetch has been called'); + console.info('azleFetch has been called'); } const url = getUrl(input); diff --git a/tests/end_to_end/candid_rpc/class_syntax/bitcoin/test/setup.ts b/tests/end_to_end/candid_rpc/class_syntax/bitcoin/test/setup.ts index 28661b4756..65cdb77d89 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/bitcoin/test/setup.ts +++ b/tests/end_to_end/candid_rpc/class_syntax/bitcoin/test/setup.ts @@ -28,13 +28,13 @@ export async function startBitcoinDaemon(): Promise { } }); - console.log(`starting bitcoind...`); + console.info(`starting bitcoind...`); await new Promise((resolve) => setTimeout(resolve, 5000)); return bitcoinDaemon; } export function createBitcoinWallet(wallets: Wallets): void { - console.log(' - create bitcoin wallet'); + console.info(' - create bitcoin wallet'); bitcoinCli.createWallet(); Object.entries(wallets).forEach(([name, wallet]) => { bitcoinCli.importPrivateKey(wallet.wif, name); @@ -42,12 +42,12 @@ export function createBitcoinWallet(wallets: Wallets): void { } export async function mine101Blocks(wallets: Wallets): Promise { - console.log(' - mine blocks'); + console.info(' - mine blocks'); await bitcoinCli.generateToAddress(101, wallets.alice.p2wpkh); } export function getEarliestUtxo(): Utxo { - console.log(' - get earliest utxo'); + console.info(' - get earliest utxo'); const utxos = bitcoinCli.listUnspent(); if (utxos.length === 0) { throw "There aren't any UTXOs after mining 101 blocks. Something went wrong"; @@ -56,7 +56,7 @@ export function getEarliestUtxo(): Utxo { } export function createTransaction(from: Utxo, wallets: Wallets): string { - console.log(' - get create transaction'); + console.info(' - get create transaction'); const input: TxInput = { txid: from.txid, vout: from.vout @@ -69,6 +69,6 @@ export function createTransaction(from: Utxo, wallets: Wallets): string { } export function signTransaction(rawTransaction: string): string { - console.log(' - sign transaction'); + console.info(' - sign transaction'); return bitcoinCli.signRawTransactionWithWallet(rawTransaction).hex; } diff --git a/tests/end_to_end/candid_rpc/class_syntax/ckbtc/test/test.ts b/tests/end_to_end/candid_rpc/class_syntax/ckbtc/test/test.ts index 2f21a85aa7..fe0e668df2 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/ckbtc/test/test.ts +++ b/tests/end_to_end/candid_rpc/class_syntax/ckbtc/test/test.ts @@ -56,7 +56,7 @@ async function startBitcoinDaemon(): Promise { } }); - console.log(`starting bitcoind...`); + console.info(`starting bitcoind...`); await new Promise((resolve) => setTimeout(resolve, 5000)); return bitcoinDaemon; } diff --git a/tests/end_to_end/candid_rpc/class_syntax/ckbtc/wallet/backend/index.ts b/tests/end_to_end/candid_rpc/class_syntax/ckbtc/wallet/backend/index.ts index ef7c1a3f07..b5262b6de9 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/ckbtc/wallet/backend/index.ts +++ b/tests/end_to_end/candid_rpc/class_syntax/ckbtc/wallet/backend/index.ts @@ -103,7 +103,7 @@ function padPrincipalWithZeros(blob: Uint8Array): Uint8Array { function getCkBtcPrincipal(): string { if (process.env.CK_BTC_PRINCIPAL !== undefined) { - console.log(process.env.CK_BTC_PRINCIPAL); + console.info(process.env.CK_BTC_PRINCIPAL); return process.env.CK_BTC_PRINCIPAL; } diff --git a/tests/end_to_end/candid_rpc/class_syntax/ckbtc/wallet/frontend/elements/ck-app.ts b/tests/end_to_end/candid_rpc/class_syntax/ckbtc/wallet/frontend/elements/ck-app.ts index 3a4fed685e..f56168c7c5 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/ckbtc/wallet/frontend/elements/ck-app.ts +++ b/tests/end_to_end/candid_rpc/class_syntax/ckbtc/wallet/frontend/elements/ck-app.ts @@ -96,7 +96,7 @@ export class CkApp extends LitElement { const result = await this.walletBackend.getBalance(); - console.log('getBalance', result); + console.info('getBalance', result); this.balance = result; } @@ -109,7 +109,7 @@ export class CkApp extends LitElement { const result = await this.walletBackend.getDepositAddress(); - console.log('getBitcoinDepositAddress', result); + console.info('getBitcoinDepositAddress', result); this.bitcoinDepositAddress = result; } @@ -124,7 +124,7 @@ export class CkApp extends LitElement { const result = await this.walletBackend.updateBalance(); - console.log('updateBalance', result); + console.info('updateBalance', result); await this.getBalance(); @@ -149,7 +149,7 @@ export class CkApp extends LitElement { this.transferAmount ); - console.log('transfer', result); + console.info('transfer', result); await this.getBalance(); diff --git a/tests/end_to_end/candid_rpc/class_syntax/heartbeat/src/heartbeat_async/index.ts b/tests/end_to_end/candid_rpc/class_syntax/heartbeat/src/heartbeat_async/index.ts index c83c51f3c6..8736b13132 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/heartbeat/src/heartbeat_async/index.ts +++ b/tests/end_to_end/candid_rpc/class_syntax/heartbeat/src/heartbeat_async/index.ts @@ -8,7 +8,7 @@ export default class { const randomness = await getRandomness(); initialized = randomness; - console.log('heartbeat initialized', randomness.length); + console.info('heartbeat initialized', randomness.length); } @query([], IDL.Vec(IDL.Nat8)) diff --git a/tests/end_to_end/candid_rpc/class_syntax/heartbeat/src/heartbeat_sync/index.ts b/tests/end_to_end/candid_rpc/class_syntax/heartbeat/src/heartbeat_sync/index.ts index bc1175a126..c55e352801 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/heartbeat/src/heartbeat_sync/index.ts +++ b/tests/end_to_end/candid_rpc/class_syntax/heartbeat/src/heartbeat_sync/index.ts @@ -6,7 +6,7 @@ export default class { @heartbeat heartbeat(): void { initialized = true; - console.log('heartbeat initialized', initialized); + console.info('heartbeat initialized', initialized); } @query([], IDL.Bool) diff --git a/tests/end_to_end/candid_rpc/class_syntax/inspect_message/src/index.ts b/tests/end_to_end/candid_rpc/class_syntax/inspect_message/src/index.ts index 0cd10107a4..8788bb16bc 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/inspect_message/src/index.ts +++ b/tests/end_to_end/candid_rpc/class_syntax/inspect_message/src/index.ts @@ -3,7 +3,7 @@ import { acceptMessage, IDL, inspectMessage, methodName, update } from 'azle'; export default class { @inspectMessage inspectMessage(): void { - console.log('inspectMessage called'); + console.info('inspectMessage called'); if (methodName() === 'accessible') { acceptMessage(); diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/src/index.ts b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/src/index.ts index 1bf3a7a77d..23c6bec67b 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/src/index.ts +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/src/index.ts @@ -3,6 +3,6 @@ import { query } from 'azle'; export default class { @query([]) main(): void { - console.log('Hello World!'); + console.info('Hello World!'); } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/webpack.config.js b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/webpack.config.js index b3870b7663..a6315c0cd3 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/webpack.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/webpack.config.js @@ -11,12 +11,12 @@ function initCanisterEnv() { path.resolve('.dfx', 'local', 'canister_ids.json') ); } catch (error) { - console.log('No local canister_ids.json found. Continuing production'); + console.info('No local canister_ids.json found. Continuing production'); } try { prodCanisters = require(path.resolve('canister_ids.json')); } catch (error) { - console.log( + console.info( 'No production canister_ids.json found. Continuing with local' ); } diff --git a/tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/src/index.ts b/tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/src/index.ts index efed30c6e5..1c22c1ff44 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/src/index.ts +++ b/tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/src/index.ts @@ -26,14 +26,14 @@ let entries: { export default class { @init([]) init(): void { - console.log('init'); + console.info('init'); stableStorage.insert('entries', []); } @postUpgrade([]) postUpgrade(): void { - console.log('postUpgrade'); + console.info('postUpgrade'); const stableEntriesOpt = stableStorage.get('entries'); @@ -50,7 +50,7 @@ export default class { @preUpgrade preUpgrade(): void { - console.log('preUpgrade'); + console.info('preUpgrade'); stableStorage.insert( 'entries', diff --git a/tests/end_to_end/candid_rpc/class_syntax/primitive_types/src/index.ts b/tests/end_to_end/candid_rpc/class_syntax/primitive_types/src/index.ts index 13fd924ee3..4b38ba3309 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/primitive_types/src/index.ts +++ b/tests/end_to_end/candid_rpc/class_syntax/primitive_types/src/index.ts @@ -8,7 +8,7 @@ export default class { @query([IDL.Text], IDL.Text) printString(string: string): string { - console.log(typeof string); + console.info(typeof string); return string; } @@ -19,7 +19,7 @@ export default class { @query([IDL.Text], IDL.Text) printText(text: string): string { - console.log(typeof text); + console.info(typeof text); return text; } @@ -30,7 +30,7 @@ export default class { @query([IDL.Float64], IDL.Float64) printNumber(number: number): number { - console.log(typeof number); + console.info(typeof number); return number; } @@ -41,7 +41,7 @@ export default class { @query([IDL.Int], IDL.Int) printInt(int: bigint): bigint { - console.log(typeof int); + console.info(typeof int); return int; } @@ -52,7 +52,7 @@ export default class { @query([IDL.Int64], IDL.Int64) printInt64(int64: bigint): bigint { - console.log(typeof int64); + console.info(typeof int64); return int64; } @@ -63,7 +63,7 @@ export default class { @query([IDL.Int32], IDL.Int32) printInt32(int32: bigint): bigint { - console.log(typeof int32); + console.info(typeof int32); return int32; } @@ -74,7 +74,7 @@ export default class { @query([IDL.Int16], IDL.Int16) printInt16(int16: number): number { - console.log(typeof int16); + console.info(typeof int16); return int16; } @@ -85,7 +85,7 @@ export default class { @query([IDL.Int8], IDL.Int8) printInt8(int8: number): number { - console.log(typeof int8); + console.info(typeof int8); return int8; } @@ -96,7 +96,7 @@ export default class { @query([IDL.Nat], IDL.Nat) printNat(nat: bigint): bigint { - console.log(typeof nat); + console.info(typeof nat); return nat; } @@ -107,7 +107,7 @@ export default class { @query([IDL.Nat64], IDL.Nat64) printNat64(nat64: bigint): bigint { - console.log(typeof nat64); + console.info(typeof nat64); return nat64; } @@ -118,7 +118,7 @@ export default class { @query([IDL.Nat32], IDL.Nat32) printNat32(nat32: number): number { - console.log(typeof nat32); + console.info(typeof nat32); return nat32; } @@ -129,7 +129,7 @@ export default class { @query([IDL.Nat16], IDL.Nat16) printNat16(nat16: number): number { - console.log(typeof nat16); + console.info(typeof nat16); return nat16; } @@ -140,7 +140,7 @@ export default class { @query([IDL.Nat8], IDL.Nat8) printNat8(nat8: number): number { - console.log(typeof nat8); + console.info(typeof nat8); return nat8; } @@ -151,7 +151,7 @@ export default class { @query([IDL.Float64], IDL.Float64) printFloat64(float64: number): number { - console.log(typeof float64); + console.info(typeof float64); return float64; } @@ -162,7 +162,7 @@ export default class { @query([IDL.Float32], IDL.Float32) printFloat32(float32: number): number { - console.log(typeof float32); + console.info(typeof float32); return float32; } @@ -173,7 +173,7 @@ export default class { @query([IDL.Bool], IDL.Bool) printBool(bool: boolean): boolean { - console.log(typeof bool); + console.info(typeof bool); return bool; } @@ -184,7 +184,7 @@ export default class { @query([IDL.Principal], IDL.Principal) printPrincipal(principal: Principal): Principal { - console.log(typeof principal); + console.info(typeof principal); return principal; } @@ -195,7 +195,7 @@ export default class { @query([IDL.Null], IDL.Null) printNull(Null: null): null { - console.log(typeof Null); + console.info(typeof Null); return Null; } @@ -206,7 +206,7 @@ export default class { @query([IDL.Reserved], IDL.Reserved) printReserved(reserved: any): any { - console.log(typeof reserved); + console.info(typeof reserved); return reserved; } @@ -218,7 +218,7 @@ export default class { // but there is no way to pass an "empty" value as an argument. @query([IDL.Empty], IDL.Empty) printEmpty(empty: any): never { - console.log(typeof empty); + console.info(typeof empty); throw 'Anything you want'; } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/timers/src/timers.ts b/tests/end_to_end/candid_rpc/class_syntax/timers/src/timers.ts index 7371939c92..bbd09ca05d 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/timers/src/timers.ts +++ b/tests/end_to_end/candid_rpc/class_syntax/timers/src/timers.ts @@ -55,7 +55,7 @@ export default class { @update([IDL.Nat64]) clearTimer(timerId: bigint): void { clearTimer(timerId); - console.log(`timer ${timerId} cancelled`); + console.info(`timer ${timerId} cancelled`); } @update([IDL.Nat64, IDL.Nat64], TimerIds) @@ -66,17 +66,17 @@ export default class { const inlineId = setTimer(delay, () => { statusReport.inline = 1; - console.log('Inline timer called'); + console.info('Inline timer called'); }); const captureId = setTimer(delay, () => { statusReport.capture = capturedValue; - console.log(`Timer captured value ${capturedValue}`); + console.info(`Timer captured value ${capturedValue}`); }); const repeatId = setTimerInterval(interval, () => { statusReport.repeat++; - console.log(`Repeating timer. Call ${statusReport.repeat}`); + console.info(`Repeating timer. Call ${statusReport.repeat}`); }); const singleCrossCanisterId = setTimer( @@ -107,17 +107,17 @@ export default class { function oneTimeTimerCallback(): void { statusReport.single = true; - console.log('oneTimeTimerCallback called'); + console.info('oneTimeTimerCallback called'); } async function singleCrossCanisterTimerCallback(): Promise { - console.log('singleCrossCanisterTimerCallback'); + console.info('singleCrossCanisterTimerCallback'); statusReport.singleCrossCanister = await getRandomness(); } async function repeatCrossCanisterTimerCallback(): Promise { - console.log('repeatCrossCanisterTimerCallback'); + console.info('repeatCrossCanisterTimerCallback'); statusReport.repeatCrossCanister = Uint8Array.from([ ...statusReport.repeatCrossCanister,