mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 14:42:33 -05:00
remove log
This commit is contained in:
1 parent
520bac2ec7
commit
970e53a5a3
1 file changed
+7
-12
@@ -57,18 +57,13 @@ module Api
|
||||
object_name = error.subject.model_name.human
|
||||
id = error.subject.id
|
||||
|
||||
message =
|
||||
if current_user.account.testing?
|
||||
"#{object_name} #{id} not found using testing API key; Use production API key to " \
|
||||
"access production #{object_name.downcase.pluralize}."
|
||||
else
|
||||
"#{object_name} #{id} not found using production API key; Use testing API key to " \
|
||||
"access testing #{object_name.downcase.pluralize}."
|
||||
end
|
||||
|
||||
Rollbar.warning(message) if defined?(Rollbar)
|
||||
|
||||
message
|
||||
if current_user.account.testing?
|
||||
"#{object_name} #{id} not found using testing API key; Use production API key to " \
|
||||
"access production #{object_name.downcase.pluralize}."
|
||||
else
|
||||
"#{object_name} #{id} not found using production API key; Use testing API key to " \
|
||||
"access testing #{object_name.downcase.pluralize}."
|
||||
end
|
||||
end
|
||||
|
||||
def paginate(relation, field: :id)
|
||||
|
||||
Reference in new issue
Block a user