dbos-inc/dbos-transact-ts

Impove logging in server.ts

Closed this issue · 2 comments

Hi,

Trying to run dbos in a docker container I faced some issues with starting up the server.
One of them turned out to be that I had not configured my docker service to allow ipv6 addresses which I managed to solve.
In the mean time I was getting error messages that did not make sense.
After reading httpServer/server.ts I figured what my problem was and also that this piece of code needs some improvement
so as to provide meaningful error messages.

The code of listen consolidates two errors in one.
This is the one that confused me enough so as to have to read the code.

Also the result of checkPortAvailability is ignored.

If you think there is a point in fixing this I would happily prepare an MR if you point me at what the desired result should behave like.

Thanks a lot.

Hello! Thanks for your feedback. We create a PR to improve error logging: #383
Does it address your issue?

It certainly does!