Skip to content

Commit

Permalink
added rescue
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianHeimke committed Jun 4, 2024
1 parent 737a362 commit a4ee19d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ class GelfProxy < Sinatra::Base
log = JSON.parse(request.body.read)
log.store('facility', APP_NAME)
puts log.to_json
rescue
puts request.body.read
end

## Run the app when file called ##
Expand Down

0 comments on commit a4ee19d

Please sign in to comment.