File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed
examples/chatbots/typescript/src Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -69,8 +69,8 @@ async def start(self) -> None:
69
69
70
70
for i , user_input in enumerate (self .user_utterances ):
71
71
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 )
74
74
75
75
print (f"\n You: { user_input } " )
76
76
Original file line number Diff line number Diff line change 2
2
3
3
set -ex
4
4
5
+ export LOG_LEVEL=debug
6
+
5
7
# Get UUID to make the CloudFormation stacks unique per run
6
8
UUID=$( uuidgen)
7
9
export INTEG_TEST_ID=$UUID
Original file line number Diff line number Diff line change 1
- import winston from ' winston' ;
1
+ import winston from " winston" ;
2
2
3
3
// Configure the logger
4
4
const logger = winston . createLogger ( {
5
- level : process . env . LOG_LEVEL || ' info' ,
5
+ level : process . env . LOG_LEVEL ?. toLowerCase ( ) || " info" ,
6
6
format : winston . format . combine (
7
7
winston . format . timestamp ( ) ,
8
8
winston . format . printf ( ( { level, message, timestamp } ) => {
Original file line number Diff line number Diff line change 1
- import winston from ' winston' ;
1
+ import winston from " winston" ;
2
2
3
3
// Configure the logger
4
4
const logger = winston . createLogger ( {
5
- level : process . env . LOG_LEVEL || ' info' ,
5
+ level : process . env . LOG_LEVEL ?. toLowerCase ( ) || " info" ,
6
6
format : winston . format . combine (
7
7
winston . format . timestamp ( ) ,
8
8
winston . format . printf ( ( { level, message, timestamp } ) => {
You can’t perform that action at this time.
0 commit comments