diff options
Diffstat (limited to 'config/initializers/0_runtime_identify.rb')
-rw-r--r-- | config/initializers/0_runtime_identify.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/config/initializers/0_runtime_identify.rb b/config/initializers/0_runtime_identify.rb new file mode 100644 index 00000000000..2b5d08102eb --- /dev/null +++ b/config/initializers/0_runtime_identify.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +begin + Gitlab::AppLogger.info("Runtime: #{Gitlab::Runtime.name}") +rescue => 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) +end |