Skip to content

Commit 7cc0914

Browse files
committed
Turn on debug logging in integ tests
1 parent 4dbb1c2 commit 7cc0914

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

e2e_tests/python/chat_session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ async def start(self) -> None:
6969

7070
for i, user_input in enumerate(self.user_utterances):
7171
if i != 0:
72-
print("\n**Pausing 5 seconds to avoid Bedrock throttling**")
73-
await asyncio.sleep(5)
72+
print("\n**Pausing 15 seconds to avoid Bedrock throttling**")
73+
await asyncio.sleep(15)
7474

7575
print(f"\nYou: {user_input}")
7676

e2e_tests/run_integ_test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
set -ex
44

5+
export LOG_LEVEL=debug
6+
57
# Get UUID to make the CloudFormation stacks unique per run
68
UUID=$(uuidgen)
79
export INTEG_TEST_ID=$UUID

e2e_tests/typescript/src/logger.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import winston from 'winston';
1+
import winston from "winston";
22

33
// Configure the logger
44
const logger = winston.createLogger({
5-
level: process.env.LOG_LEVEL || 'info',
5+
level: process.env.LOG_LEVEL?.toLowerCase() || "info",
66
format: winston.format.combine(
77
winston.format.timestamp(),
88
winston.format.printf(({ level, message, timestamp }) => {

examples/chatbots/typescript/src/logger.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import winston from 'winston';
1+
import winston from "winston";
22

33
// Configure the logger
44
const logger = winston.createLogger({
5-
level: process.env.LOG_LEVEL || 'info',
5+
level: process.env.LOG_LEVEL?.toLowerCase() || "info",
66
format: winston.format.combine(
77
winston.format.timestamp(),
88
winston.format.printf(({ level, message, timestamp }) => {

0 commit comments

Comments
 (0)