headscale/hscontrol/mapper
Kristoffer Dalby 53cdeff129 hscontrol/mapper: use sub-loggers and zf constants
Add sub-logger patterns to worker(), AddNode(), RemoveNode() and
multiChannelNodeConn to eliminate repeated field calls. Use zf.*
constants for consistent field naming.

Changes in batcher_lockfree.go:
- Add wlog sub-logger in worker() with worker.id context
- Add log field to multiChannelNodeConn struct
- Initialize mc.log with node.id in newMultiChannelNodeConn()
- Add nlog sub-loggers in AddNode() and RemoveNode()
- Update all connection methods to use mc.log

Changes in batcher.go:
- Use zf.NodeID and zf.Reason in handleNodeChange()
2026-02-06 07:40:29 +01:00
..
batcher.go hscontrol/mapper: use sub-loggers and zf constants 2026-02-06 07:40:29 +01:00
batcher_lockfree.go hscontrol/mapper: use sub-loggers and zf constants 2026-02-06 07:40:29 +01:00
batcher_test.go db: use PolicyManager for RequestTags migration 2026-01-21 15:10:29 +01:00
builder.go change: smarter change notifications 2025-12-16 10:12:36 +01:00
builder_test.go bunch of qol (#2748) 2025-08-27 17:09:13 +02:00
mapper.go hscontrol: use EmbedObject for node logging 2026-02-06 07:40:29 +01:00
mapper_test.go make tags first class node owner (#2885) 2025-12-02 12:01:25 +01:00
tail_test.go types: add option to disable taildrop, improve tests (#2955) 2025-12-12 11:35:16 +01:00