juanfont / headscale

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

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

Open akelge opened 1 month ago

akelge commented 1 month 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 1 month ago

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

badsmoke commented 1 month ago

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