summaryrefslogtreecommitdiff
path: root/config/initializers/9_runtime_identify.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/initializers/9_runtime_identify.rb')
-rw-r--r--config/initializers/9_runtime_identify.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/config/initializers/9_runtime_identify.rb b/config/initializers/9_runtime_identify.rb
new file mode 100644
index 00000000000..c5efc9b17cb
--- /dev/null
+++ b/config/initializers/9_runtime_identify.rb
@@ -0,0 +1,14 @@
+# frozen_string_literal: true
+
+begin
+ Gitlab::Runtime.identify
+rescue Gitlab::Runtime::IdentificationError => e
+ message = <<-NOTICE
+ \n!! RUNTIME IDENTIFICATION FAILED: #{e}
+ Runtime based configuration settings may not work properly.
+ If you continue to see this error, please file an issue via
+ https://gitlab.com/gitlab-org/gitlab/-/issues/new
+ NOTICE
+ Gitlab::AppLogger.error(message)
+ Gitlab::ErrorTracking.track_exception(e)
+end