TBD54566975 / dwn-server

DWN server - host anywhere publicly accessible for DIDs to use
Apache License 2.0
40 stars 41 forks source link

The CORS tests hide console errors and don't set them back. #112

Open LiranCohen opened 8 months ago

LiranCohen commented 8 months ago

Within the cors.spec.ts file there are lines that set the console(log, error, info) to void functions in order to hide them in testing. However they are never re-assigned.

https://github.com/TBD54566975/dwn-server/blob/main/tests/cors.spec.ts#L176-L178

Fix this issue to re-assign console.log. As well as make sure that purposeful logging throughout the system uses the loglevel package for logging. And also disable this specific log in tests as it might be too noisy.