Skip to content

Commit 53f2acc

Browse files
committed
use console.log for object logging
1 parent a9d36fe commit 53f2acc

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

tests/helper.mjs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@ import commandLineUsage from "command-line-usage";
44

55
export const GITHUB_ACTIONS_OUTPUT = "GITHUB_ACTIONS_OUTPUT" in process.env;
66

7-
export function log(...args) {
8-
if (GITHUB_ACTIONS_OUTPUT)
9-
core.info(args.join(" "));
10-
else
11-
console.log(...args);
12-
}
13-
147
export function logInfo(...args) {
158
const text = args.join(" ")
169
if (GITHUB_ACTIONS_OUTPUT)

tests/run.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import serve from "./server.mjs";
44
import { Builder, Capabilities } from "selenium-webdriver";
55
import commandLineArgs from "command-line-args";
66

7-
import {log, logInfo, logError, printHelp, runTest} from "./helper.mjs";
7+
import {logInfo, logError, printHelp, runTest} from "./helper.mjs";
88

99
const optionDefinitions = [
1010
{ name: "browser", type: String, description: "Set the browser to test, choices are [safari, firefox, chrome, edge]. By default the $BROWSER env variable is used." },
@@ -151,7 +151,7 @@ function logIncrementalResult(previousResults, benchmarkResults) {
151151
for (const [testName, testResults] of Object.entries(benchmarkResults)) {
152152
if (previousResults.has(testName))
153153
continue;
154-
log(testName, testResults);
154+
console.log(testName, testResults);
155155
previousResults.add(testName);
156156
}
157157
}

0 commit comments

Comments
 (0)