Skip to content

Commit

Permalink
TestKit: use env var for logging level that's being forwarded (#1179)
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Barcelos <antonio.barcelos@neo4j.com>
  • Loading branch information
robsdedude committed Feb 19, 2024
1 parent 1fcdee9 commit 71dcb7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/testkit-backend/deno/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const binder = new CypherNativeBinders(neo4j);
const descriptor = ["async", "deno"];
const shouldRunTest = getShouldRunTest(descriptor);
const getFeatures = createGetFeatures(descriptor);
const logLevel = Deno.env.get("LOG_LEVEL");
const logLevel = Deno.env.get("TEST_LOG_LEVEL");
const createContext = () =>
new Context(shouldRunTest, getFeatures, binder, logLevel);

Expand Down
2 changes: 1 addition & 1 deletion packages/testkit-backend/src/controller/local.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default class LocalController extends Controller {
}

openContext (contextId) {
this._contexts.set(contextId, new Context(this._shouldRunTest, this._getFeatures, this._binder, process.env.LOG_LEVEL))
this._contexts.set(contextId, new Context(this._shouldRunTest, this._getFeatures, this._binder, process.env.TEST_LOG_LEVEL))
}

closeContext (contextId) {
Expand Down

0 comments on commit 71dcb7a

Please sign in to comment.