juanfont / headscale

An open source, self-hosted implementation of the Tailscale control server
BSD 3-Clause "New" or "Revised" License
22.99k stars 1.26k forks source link

[Bug] no logging in JSON format, even when setting it in configuration #2175

Open akelge opened 2 weeks ago

akelge commented 2 weeks ago

Is this a support request?

Is there an existing issue for this?

Current Behavior

I run headscale with the following config snippet:

log:
  format: json
  level: info

but logs are in text format

Expected Behavior

I expect to see logs in JSON format

Steps To Reproduce

Run headscale with log.format: json set in the configuration

Environment

- OS: not relevant
- Headscale version: 0.23.0
- Tailscale version: not relevant

Runtime environment

Anything else?

No response

akelge commented 2 weeks ago

I have checked and it appears this has been broken in 0.23.0-beta 4, beta3 still logs in json

badsmoke commented 2 days ago

I can confirm it; I was also just wondering why it wasn't logging more in json, version 0.23