mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: improve coder server ux (#14761)
This commit is contained in:
@@ -147,14 +147,14 @@ func (c *configMaps) configLoop() {
|
||||
if c.derpMapDirty {
|
||||
derpMap := c.derpMapLocked()
|
||||
actions = append(actions, func() {
|
||||
c.logger.Info(context.Background(), "updating engine DERP map", slog.F("derp_map", (*derpMapStringer)(derpMap)))
|
||||
c.logger.Debug(context.Background(), "updating engine DERP map", slog.F("derp_map", (*derpMapStringer)(derpMap)))
|
||||
c.engine.SetDERPMap(derpMap)
|
||||
})
|
||||
}
|
||||
if c.netmapDirty {
|
||||
nm := c.netMapLocked()
|
||||
actions = append(actions, func() {
|
||||
c.logger.Info(context.Background(), "updating engine network map", slog.F("network_map", nm))
|
||||
c.logger.Debug(context.Background(), "updating engine network map", slog.F("network_map", nm))
|
||||
c.engine.SetNetworkMap(nm)
|
||||
c.reconfig(nm)
|
||||
})
|
||||
@@ -162,7 +162,7 @@ func (c *configMaps) configLoop() {
|
||||
if c.filterDirty {
|
||||
f := c.filterLocked()
|
||||
actions = append(actions, func() {
|
||||
c.logger.Info(context.Background(), "updating engine filter", slog.F("filter", f))
|
||||
c.logger.Debug(context.Background(), "updating engine filter", slog.F("filter", f))
|
||||
c.engine.SetFilter(f)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user