server: update HTTP exception errors in log line for Triggers

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9738
GitOrigin-RevId: cece764a6fa087958675077c8420e9478d419e8e
This commit is contained in:
pranshi06 2023-07-06 13:06:30 +05:30 committed by hasura-bot
parent d6cb5bff4a
commit d32ae8ea05

View File

@ -108,7 +108,7 @@ data HTTPErr (a :: TriggerTypes)
instance J.ToJSON (HTTPErr a) where instance J.ToJSON (HTTPErr a) where
toJSON err = toObj $ case err of toJSON err = toObj $ case err of
(HClient httpException) -> (HClient httpException) ->
("client", J.toJSON httpException) ("client", getHttpExceptionJson (ShowErrorInfo True) httpException)
(HStatus resp) -> (HStatus resp) ->
("status", J.toJSON resp) ("status", J.toJSON resp)
(HOther e) -> ("internal", J.toJSON e) (HOther e) -> ("internal", J.toJSON e)