wetware / pkg

Peer-to-peer cloud environment
https://wetware.run
Other
38 stars 7 forks source link

Add -debug and -json logging flags #151

Closed lthibault closed 1 year ago

lthibault commented 1 year ago

Stacked on top of #150. Merge that first.

59d5c93f723eb14c7b9d879341226e9071d6f51f adds the ww -debug and ww -json logs, which control log verbosity. ffe98d449f405938f3d59461ef95534f43a44923 cleans up logging, notably by creating the util/log package.

It is recommended to review each of these commits separately. There's a lot of noise, but the changes are simple. Most of the diff is just updating code at the call site.