Skip to content

Commit

Permalink
TINY-11177: Expand console logging of driver capabilities to any dept…
Browse files Browse the repository at this point in the history
…h. Remove duplicate log.
  • Loading branch information
TheSpyder committed Jan 16, 2025
1 parent e16e39e commit 72854ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 4 additions & 0 deletions modules/server/src/main/ts/BedrockCli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import { Attempt } from './bedrock/core/Attempt';
import * as Clis from './bedrock/cli/Clis';
import { BedrockSettings } from './bedrock/core/Settings';

// set NodeJS console logging of objects to be actually useful
import * as Util from 'util';
Util.inspect.defaultOptions.depth = null;

type Program = {
go: <T extends BedrockSettings>(settings: T, directories: { current: string; bin: string }) => void;
mode: 'forAuto' | 'forManual';
Expand Down
10 changes: 3 additions & 7 deletions modules/server/src/main/ts/bedrock/auto/Driver.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@

import * as path from 'path';
import * as childProcess from 'child_process';
import * as os from 'os';
import * as WebdriverIO from 'webdriverio';
import {RemoteOptions} from 'webdriverio';
import * as portfinder from 'portfinder';
import * as Shutdown from '../util/Shutdown';
import * as DriverLoader from './DriverLoader';
import * as RemoteDriver from './RemoteDriver';
import {Tunnel} from './Tunnel';
import deepmerge = require('deepmerge');
import { RemoteOptions } from 'webdriverio';
import { Tunnel } from './Tunnel';

export interface DriverSettings {
basedir: string;
Expand Down Expand Up @@ -146,7 +145,7 @@ const getOptions = (port: number, browserName: string, settings: DriverSettings,
}
}

const driverOpts = deepmerge(
return deepmerge(
options,
settings.remoteWebdriver ?
RemoteDriver.getOpts(browserName, settings) :
Expand All @@ -156,9 +155,6 @@ const getOptions = (port: number, browserName: string, settings: DriverSettings,
port
}
) as RemoteOptions;
console.log('Print Opts: ', driverOpts);

return driverOpts;
};

const logDriverDetails = (driver: WebdriverIO.Browser, headless: boolean, debuggingPort: number) => {
Expand Down

0 comments on commit 72854ae

Please sign in to comment.