Skip to content

Commit

Permalink
fix logs
Browse files Browse the repository at this point in the history
Signed-off-by: r3kt.eth <[email protected]>
  • Loading branch information
r3kt-eth committed Aug 17, 2023
1 parent fe02c5d commit 6ac7a41
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 30 deletions.
20 changes: 4 additions & 16 deletions helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = {
},
// set currently active network
async setNetwork(network) {
log(`Setting network to ${JSON.stringify(network)}`);
log('Setting network to', network);
currentNetwork = network;
},
// find network in presets
Expand All @@ -31,11 +31,7 @@ module.exports = {
}

network = network.toLowerCase();
log(
`[findNetwork] Trying to find following network: ${JSON.stringify(
network,
)}`,
);
log('[findNetwork] Trying to find following network', network);

let chain;
for (const [key, value] of Object.entries(chains)) {
Expand Down Expand Up @@ -78,11 +74,7 @@ module.exports = {
},
// get currently active network
getCurrentNetwork() {
log(
`[getCurrentNetwork] Current network data: ${JSON.stringify(
currentNetwork,
)}`,
);
log('[getCurrentNetwork] Current network data', currentNetwork);
return currentNetwork;
},
// add new network to presets and list of metamask networks
Expand All @@ -97,11 +89,7 @@ module.exports = {
},
// check if network is already added to metamask
async checkNetworkAdded(network) {
log(
`[checkNetworkAdded] Checking if network is already added: ${JSON.stringify(
network,
)}`,
);
log('[checkNetworkAdded] Checking if network is already added', network);
if (addedNetworks.includes(network)) {
log(`[checkNetworkAdded] Network is present`);
return true;
Expand Down
4 changes: 1 addition & 3 deletions launcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,7 @@ const launcher = {
}

const runOptions = await cypress.cli.parseRunArguments(defaultArguments);
log(
`Running synpress with following options: ${JSON.stringify(runOptions)}`,
);
log('Running synpress with following options', runOptions);
const results = await cypress.run(runOptions);
if (results.failures) {
console.error('Failed to run Cypress');
Expand Down
15 changes: 4 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6ac7a41

Please sign in to comment.