Skip to content

Commit 9af0246

Browse files
committed
logEntry
1 parent 9fd4ddb commit 9af0246

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

coderd/workspaceagents.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1976,17 +1976,17 @@ func websocketNetConn(ctx context.Context, conn *websocket.Conn, msgType websock
19761976

19771977
func convertWorkspaceAgentStartupLogs(logs []database.WorkspaceAgentStartupLog) []codersdk.WorkspaceAgentStartupLog {
19781978
sdk := make([]codersdk.WorkspaceAgentStartupLog, 0, len(logs))
1979-
for _, log := range logs {
1980-
sdk = append(sdk, convertWorkspaceAgentStartupLog(log))
1979+
for _, logEntry := range logs {
1980+
sdk = append(sdk, convertWorkspaceAgentStartupLog(logEntry))
19811981
}
19821982
return sdk
19831983
}
19841984

1985-
func convertWorkspaceAgentStartupLog(log database.WorkspaceAgentStartupLog) codersdk.WorkspaceAgentStartupLog {
1985+
func convertWorkspaceAgentStartupLog(logEntry database.WorkspaceAgentStartupLog) codersdk.WorkspaceAgentStartupLog {
19861986
return codersdk.WorkspaceAgentStartupLog{
1987-
ID: log.ID,
1988-
CreatedAt: log.CreatedAt,
1989-
Output: log.Output,
1990-
Level: codersdk.LogLevel(log.Level),
1987+
ID: logEntry.ID,
1988+
CreatedAt: logEntry.CreatedAt,
1989+
Output: logEntry.Output,
1990+
Level: codersdk.LogLevel(logEntry.Level),
19911991
}
19921992
}

0 commit comments

Comments
 (0)