Commit 954b8603 authored by Brett Walker's avatar Brett Walker Committed by Robert Speicher

Add Geo information to console message

parent 53d04fa3
...@@ -6,5 +6,14 @@ if defined?(Rails::Console) ...@@ -6,5 +6,14 @@ if defined?(Rails::Console)
puts " Gitlab:".ljust(justify) + "#{Gitlab::VERSION} (#{Gitlab::REVISION})" puts " Gitlab:".ljust(justify) + "#{Gitlab::VERSION} (#{Gitlab::REVISION})"
puts " Gitlab Shell:".ljust(justify) + Gitlab::Shell.new.version puts " Gitlab Shell:".ljust(justify) + Gitlab::Shell.new.version
puts " #{Gitlab::Database.adapter_name}:".ljust(justify) + Gitlab::Database.version puts " #{Gitlab::Database.adapter_name}:".ljust(justify) + Gitlab::Database.version
# EE-specific start
if Gitlab::Geo.enabled?
puts " Geo enabled:".ljust(justify) + 'yes'
puts " Geo server:".ljust(justify) + (Gitlab::Geo.primary? ? 'primary' : 'secondary')
end
# EE specific end
puts "-------------------------------------------------------------------------------------" puts "-------------------------------------------------------------------------------------"
end end
---
title: Add Geo information to console message
merge_request: 5588
author:
type: changed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment