Skip to content

Commit b8da78f

Browse files
committed
chore: improve logging for debug
1 parent 6626a7b commit b8da78f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

packages/testing/src/TestStack.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ const testConsole = new Console({
1717
stderr: process.stderr,
1818
});
1919

20-
testConsole.log(process.env.RUNNER_DEBUG);
21-
2220
/**
2321
* Test stack that can be deployed to the selected environment.
2422
*/
@@ -61,12 +59,18 @@ class TestStack {
6159
testPrefix: stackNameProps.stackNamePrefix,
6260
});
6361
this.app = app ?? new App();
64-
this.stack = stack ?? new Stack(this.app, this.testName);
62+
this.stack =
63+
stack ??
64+
new Stack(this.app, this.testName, {
65+
tags: {
66+
Service: 'Powertools-for-AWS-e2e-tests',
67+
},
68+
});
6569
this.#cli = new Toolkit({
6670
color: false,
6771
ioHost: {
6872
async notify(msg) {
69-
if (process.env.RUNNER_DEBUG === 'true') {
73+
if (process.env.RUNNER_DEBUG === '1') {
7074
testConsole.log(msg);
7175
} else {
7276
if (['info', 'warning', 'error'].includes(msg.level)) {

0 commit comments

Comments
 (0)