@@ -16,7 +16,6 @@ export function api_fetch(
1616 ajv . addKeyword ( "method" )
1717 ajv . addKeyword ( "max_retry" )
1818 const valid = ajv . validate ( schema , body )
19- console . log ( "valid" , schema . $id , valid )
2019 if ( ! valid ) {
2120 errors_store . add_error ( {
2221 code : "400" ,
@@ -30,7 +29,6 @@ export function api_fetch(
3029 geode_store . start_request ( )
3130
3231 const request_options = { method : schema [ "method" ] }
33- console . log ( "body" , body )
3432 if ( ! _ . isEmpty ( body ) ) {
3533 request_options . body = body
3634 }
@@ -39,14 +37,12 @@ export function api_fetch(
3937 request_options . max_retry = schema . max_retry
4038 }
4139
42- console . log ( "request_options" , request_options )
4340 return useFetch ( schema . $id , {
4441 baseURL : geode_store . base_url ,
4542 ...request_options ,
4643 onRequestError ( { error } ) {
47- console . log ( "onRequestError" , error )
44+ // console.log("onRequestError", error)
4845 geode_store . stop_request ( )
49- // Log the error to a proper logging library
5046 errors_store . add_error ( {
5147 code : error . code ,
5248 route : schema . $id ,
@@ -58,17 +54,16 @@ export function api_fetch(
5854 }
5955 } ,
6056 onResponse ( { response } ) {
61- console . log ( response )
57+ // console.log(response)
6258 if ( response . ok ) {
6359 geode_store . stop_request ( )
64- // Log the response to a proper logging library
6560 if ( response_function ) {
6661 response_function ( response )
6762 }
6863 }
6964 } ,
7065 onResponseError ( { response } ) {
71- console . log ( response )
66+ // console.log(response)
7267 geode_store . stop_request ( )
7368 errors_store . add_error ( {
7469 code : response . status ,
0 commit comments