File tree Expand file tree Collapse file tree
lambdas/api-handler/src/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 "**/Thumbs.db" : true ,
1111 ".github" : false ,
1212 ".vscode" : false
13- }
13+ },
14+ "typescript.tsdk" : " node_modules/typescript/lib"
1415}
Original file line number Diff line number Diff line change @@ -59,7 +59,15 @@ function createMIRepository(
5959}
6060
6161export function createDependenciesContainer ( ) : Deps {
62- const log = pino ( ) ;
62+ const log = pino ( {
63+ level : envVars . PINO_LOG_LEVEL || "info" ,
64+ formatters : {
65+ level : ( label ) => {
66+ return { level : label . toUpperCase ( ) } ;
67+ } ,
68+ } ,
69+ timestamp : ( ) => `,"timestamp":"${ new Date ( Date . now ( ) ) . toISOString ( ) } "` ,
70+ } ) ;
6371
6472 return {
6573 s3Client : new S3Client ( ) ,
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ const EnvVarsSchema = z.object({
1010 DOWNLOAD_URL_TTL_SECONDS : z . coerce . number ( ) . int ( ) ,
1111 MAX_LIMIT : z . coerce . number ( ) . int ( ) . optional ( ) ,
1212 QUEUE_URL : z . coerce . string ( ) . optional ( ) ,
13+ PINO_LOG_LEVEL : z . coerce . string ( ) . optional ( ) ,
1314} ) ;
1415
1516export type EnvVars = z . infer < typeof EnvVarsSchema > ;
You can’t perform that action at this time.
0 commit comments