@@ -38,14 +38,14 @@ const logRequestTimer = (req: Request) => {
3838 const pathname = new URL ( req . url ) . pathname ;
3939
4040 if ( ! pathname . startsWith ( '/health' ) ) {
41- logger . info ( `Incoming request: ${ pathname } ` ) ;
41+ logger . debug ( `Incoming request: ${ pathname } ` ) ;
4242 }
43-
43+
4444 return ( ) => {
4545 const duration = Date . now ( ) - start ;
4646
4747 if ( ! pathname . startsWith ( '/health' ) ) {
48- logger . info ( `Request for ${ pathname } took ${ duration } ms` ) ;
48+ logger . debug ( `Request for ${ pathname } took ${ duration } ms` ) ;
4949 }
5050 } ;
5151} ;
@@ -60,7 +60,7 @@ const fetchMetaData = async (namespace: string, publishName?: string) => {
6060 logger . debug ( `Fetching meta data from ${ url } ` ) ;
6161 try {
6262 const response = await fetch ( url , {
63- verbose : true ,
63+ verbose : false ,
6464 } ) ;
6565
6666 if ( ! response . ok ) {
@@ -124,7 +124,7 @@ const createServer = async (req: Request) => {
124124
125125 const [ namespace , publishName ] = reqUrl . pathname . slice ( 1 ) . split ( '/' ) ;
126126
127- logger . info ( `Namespace: ${ namespace } , Publish Name: ${ publishName } ` ) ;
127+ logger . debug ( `Namespace: ${ namespace } , Publish Name: ${ publishName } ` ) ;
128128
129129 if ( req . method === 'GET' ) {
130130 if ( namespace === '' ) {
@@ -157,7 +157,7 @@ const createServer = async (req: Request) => {
157157 if ( publishInfo ?. namespace && publishInfo ?. publish_name ) {
158158 const newURL = `/${ encodeURIComponent ( publishInfo . namespace ) } /${ encodeURIComponent ( publishInfo . publish_name ) } ` ;
159159
160- logger . info ( `Redirecting to default page in: ${ JSON . stringify ( publishInfo ) } ` ) ;
160+ logger . debug ( `Redirecting to default page in: ${ JSON . stringify ( publishInfo ) } ` ) ;
161161 redirectAttempted = true ;
162162 timer ( ) ;
163163 return new Response ( null , {
0 commit comments