Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Commit

Permalink
chore(guardoni): trimming and testing verbosity in Guardoni
Browse files Browse the repository at this point in the history
  • Loading branch information
vecna committed Aug 12, 2022
1 parent d4325c7 commit e85fd0a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
11 changes: 4 additions & 7 deletions packages/shared/src/providers/puppeteer/steps/openURL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,7 @@ export const openURL =
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
const loadFor = step.loadFor ?? opts.loadFor ?? 6000;

ctx.logger.info(
'— Loading %s (for %d ms) %O',
step?.url,
loadFor,
step
);
ctx.logger.info('— Loading %s (for %d ms)', step?.url, loadFor);
// Remind you can exclude step with env/--exclude=urltag

// TODO the 'timeout' would allow to repeat this operation with
Expand Down Expand Up @@ -90,7 +85,9 @@ export const openURL =
loadFor
);

await page.waitForTimeout(typeof loadFor === 'string' ? parseInt(loadFor) : loadFor);
await page.waitForTimeout(
typeof loadFor === 'string' ? parseInt(loadFor) : loadFor
);

try {
// debugger;
Expand Down
5 changes: 4 additions & 1 deletion platforms/guardoni/src/electron/events/renderer.events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,10 @@ export const GetEvents = ({
'Profile loaded from %s',
app.getPath('userData')
);
logger.info('Run experiment with config %O', g.config);
logger.info(
'Starting automated navigation with config: %s',
JSON.stringify(g.config, undefined, 2)
);
return g.runExperimentForPage(
page,
experimentId,
Expand Down
2 changes: 1 addition & 1 deletion platforms/yttrex/backend/parsers/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export function checkUpDebug(r): void {
}

function relatedMetadata(e: any, i: number): ParsedInfo | null {
videoLog.debug('tagName %O at index %d', e.tagName, i);
// videoLog.debug('tagName %O at index %d', e.tagName, i);
// here we find metadata inside the preview snippet on the right column
let foryou, mined;
const title = e.querySelector('#video-title').textContent;
Expand Down

0 comments on commit e85fd0a

Please sign in to comment.