Skip to content
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

add more logs #49

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/runway/events/github_deployment.cr
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,15 @@ class GitHubDeployment < BaseEvent
return nil
end

deployment_payload = deployment.payload.to_s
@log.debug { "deployment_payload for #{@repo}: #{deployment_payload} - deployment.payload.inspect #{deployment.payload.inspect}" } if Runway::VERBOSE

begin
BranchDeployPayload.from_json(deployment.payload.to_s)
BranchDeployPayload.from_json(deployment_payload)
rescue e : Exception
@log.error { "failed to parse branch_deploy payload for #{@repo}: #{e.message}" }
log_message = "failed to parse branch_deploy payload for #{@repo}: #{e.message}"
log_message += " - traceback: #{e.backtrace.join("\n")}" if Runway::VERBOSE
@log.error { log_message }
nil
end
end
Expand Down
Loading