Skip to content

Add build number to workspace_build audit logs #5267

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Dec 6, 2022
Merged
Prev Previous commit
Next Next commit
remove prints
  • Loading branch information
Kira-Pilot committed Nov 30, 2022
commit 8177557a58a5abde126315c954c1e9b632ad4ce2
2 changes: 0 additions & 2 deletions coderd/provisionerdserver/provisionerdserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,6 @@ func (server *Server) FailJob(ctx context.Context, failJob *proto.FailedJob) (*p
if getWorkspaceErr != nil {
server.Logger.Error(ctx, "failed to create audit log - get workspace err", slog.Error(err))
} else {
fmt.Println("Hello World! 1", workspace.ID.String())
// We pass the below information to the Auditor so that it
// can form a friendly string for the user to view in the UI.
workspaceResourceInfo := map[string]string{
Expand Down Expand Up @@ -754,7 +753,6 @@ func (server *Server) CompleteJob(ctx context.Context, completed *proto.Complete
if getWorkspaceError == nil {
auditor := server.Auditor.Load()
auditAction := auditActionFromTransition(workspaceBuild.Transition)
fmt.Println("Hello World! 2", workspace.ID.String())

// We pass the below information to the Auditor so that it
// can form a friendly string for the user to view in the UI.
Expand Down