@@ -120,7 +120,8 @@ func WithDevcontainers(devcontainers []codersdk.WorkspaceAgentDevcontainer, scri
120
120
}
121
121
if api .devcontainerLogSourceIDs [dc .WorkspaceFolder ] == uuid .Nil {
122
122
api .logger .Error (api .ctx , "devcontainer log source ID not found for devcontainer" ,
123
- slog .F ("devcontainer" , dc .Name ),
123
+ slog .F ("devcontainer_id" , dc .ID ),
124
+ slog .F ("devcontainer_name" , dc .Name ),
124
125
slog .F ("workspace_folder" , dc .WorkspaceFolder ),
125
126
slog .F ("config_path" , dc .ConfigPath ),
126
127
)
@@ -633,8 +634,8 @@ func (api *API) recreateDevcontainer(dc codersdk.WorkspaceAgentDevcontainer, con
633
634
err error
634
635
ctx = api .ctx
635
636
logger = api .logger .With (
636
- slog .F ("id " , dc .ID ),
637
- slog .F ("name " , dc .Name ),
637
+ slog .F ("devcontainer_id " , dc .ID ),
638
+ slog .F ("devcontainer_name " , dc .Name ),
638
639
slog .F ("workspace_folder" , dc .WorkspaceFolder ),
639
640
slog .F ("config_path" , configPath ),
640
641
)
@@ -759,9 +760,10 @@ func (api *API) markDevcontainerDirty(configPath string, modifiedAt time.Time) {
759
760
}
760
761
761
762
logger := api .logger .With (
762
- slog .F ("file " , configPath ),
763
- slog .F ("name " , dc .Name ),
763
+ slog .F ("devcontainer_id " , dc . ID ),
764
+ slog .F ("devcontainer_name " , dc .Name ),
764
765
slog .F ("workspace_folder" , dc .WorkspaceFolder ),
766
+ slog .F ("file" , configPath ),
765
767
slog .F ("modified_at" , modifiedAt ),
766
768
)
767
769
0 commit comments