Skip to content

Commit cba186c

Browse files
committed
trace logging
1 parent ccc7e6d commit cba186c

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

packages/core-bridge/sdk-core

Submodule sdk-core updated 358 files

packages/test/src/test-runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ if (RUN_INTEGRATION_TESTS) {
5555
// Runtime configuration was installed, creating a new Worker after Runtime shutdown we would fallback
5656
// to the default configuration (127.0.0.1) which is surprising behavior.
5757
test.serial('Runtime.install() remembers installed options after it has been shut down', async (t) => {
58-
const logger = new DefaultLogger('DEBUG');
58+
const logger = new DefaultLogger('TRACE');
5959
Runtime.install({ logger });
6060
{
6161
const runtime = Runtime.instance();

packages/test/src/test-worker-lifecycle.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import { setTimeout } from 'timers/promises';
88
import { randomUUID } from 'crypto';
99
import test from 'ava';
10-
import { Runtime, PromiseCompletionTimeoutError } from '@temporalio/worker';
10+
import { Runtime, PromiseCompletionTimeoutError, DefaultLogger } from '@temporalio/worker';
1111
import { TransportError, UnexpectedError } from '@temporalio/worker/lib/errors';
1212
import { Client } from '@temporalio/client';
1313
import { RUN_INTEGRATION_TESTS, Worker } from './helpers';
@@ -34,6 +34,10 @@ if (RUN_INTEGRATION_TESTS) {
3434
t.is(Runtime._instance, undefined);
3535
});
3636

37+
test.before(() => {
38+
Runtime.install({ logger: new DefaultLogger('TRACE') });
39+
});
40+
3741
test.serial("Worker.runUntil doesn't hang if provided promise survives to Worker's shutdown", async (t) => {
3842
const worker = await Worker.create({
3943
...defaultOptions,

0 commit comments

Comments
 (0)