Openstatus www.openstatus.dev

✏️ Update logging (#401)

* ✏️ improve logging

* ✏️ improve logging

authored by

Thibault Le Ouay and committed by
GitHub
29d286d5 efa84b11

+4 -2
+4 -2
apps/server/src/checker/checker.ts
··· 63 63 }); 64 64 } 65 65 } else { 66 - console.log(`error for ${data.url} with info ${JSON.stringify(data)}`); 66 + console.log( 67 + `error for ${JSON.stringify(data)} with info ${JSON.stringify(retry)}`, 68 + ); 67 69 } 68 70 } 69 71 }; ··· 91 93 92 94 return res; 93 95 } catch (e) { 94 - console.log("fetch error for : ", JSON.stringify(data)); 96 + console.log(`fetch error for : ${data} with error ${e}`); 95 97 console.log(e); 96 98 } 97 99 };