Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.

Commit

Permalink
More debug
Browse files Browse the repository at this point in the history
  • Loading branch information
zhulik committed Feb 8, 2023
1 parent 8bcde7a commit 37659bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion base/config.ru
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ handler = lambda do
raise Function::Unauthorized if token != AUTH_TOKEN

body = begin
JSON.parse(request.body.read, symbolize_names: true)
str = request.body.read
JSON.parse(str, symbolize_names: true)
pp(str)
rescue StandardError => e
pp(e)
pp(e.message)
Expand Down
2 changes: 1 addition & 1 deletion notifier/function/lib/function/handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ def initialize(env, body: nil)
end

def call
@body
@body.to_json
end
end

0 comments on commit 37659bd

Please sign in to comment.