If you run cook server, the program starts but nothing is logged to stdout. When visiting http://127.0.0.1:9080/, I can clearly see the server is running. This is confusing because unless you know that the server is going to run on port 9080, it seems like the program just hangs.
Looking at the code, I see that tracing is the logging library. If I remember correctly, it is necessary to register subscribers to collect the logging info. tracing-subscriber is a common one for logging too stdouot.
If you run
cook server
, the program starts but nothing is logged to stdout. When visiting http://127.0.0.1:9080/, I can clearly see the server is running. This is confusing because unless you know that the server is going to run on port 9080, it seems like the program just hangs.Looking at the code, I see that
tracing
is the logging library. If I remember correctly, it is necessary to register subscribers to collect the logging info.tracing-subscriber
is a common one for logging too stdouot.