Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'config/initializers/sawyer_patch.rb')
-rw-r--r--config/initializers/sawyer_patch.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/initializers/sawyer_patch.rb b/config/initializers/sawyer_patch.rb
index 08d249645cc..34d2843d165 100644
--- a/config/initializers/sawyer_patch.rb
+++ b/config/initializers/sawyer_patch.rb
@@ -24,6 +24,16 @@ module SawyerClassPatch
end
else
define_method attribute do
+ Gitlab::Import::Logger.warn(
+ Gitlab::ApplicationContext.current.merge(
+ {
+ message: 'Sawyer attribute called',
+ attribute: attribute,
+ caller: Gitlab::BacktraceCleaner.clean_backtrace(caller)
+ }
+ )
+ )
+
@attrs[attribute.to_sym]
end