Skip to content

Commit

Permalink
platform fault
Browse files Browse the repository at this point in the history
  • Loading branch information
chaudharysaket committed Dec 20, 2024
1 parent 487989a commit 28547d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lambda/logserver/logserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func (ls *LogServer) handler(res http.ResponseWriter, req *http.Request) {
ls.platformLogChan <- reportLine
case "platform.logsDropped":
util.Logf("Platform dropped logs: %v", event.Record)
case "function", "extension":
case "function", "extension", "platform.fault":
record := event.Record.(string)
ls.lastRequestIdLock.Lock()
functionLogs = append(functionLogs, LogLine{
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ func mainLoop(ctx context.Context, invocationClient *client.InvocationClient, ba
batch.AddTelemetry(lastRequestId, []byte(timeoutMessage))
} else if event.ShutdownReason == api.Failure && lastRequestId != "" {
// Synthesize a generic platform error. Probably an OOM, though it could be any runtime crash.
errorMessage := fmt.Sprintf("RequestId: %s A platform error caused a shutdown", lastRequestId)
errorMessage := fmt.Sprintf("RequestId: %s AWS Lambda platform fault caused a shutdown", lastRequestId)
batch.AddTelemetry(lastRequestId, []byte(errorMessage))
}

Expand Down

0 comments on commit 28547d3

Please sign in to comment.