Skip to content

Commit

Permalink
Merge pull request #1556 from cyberark/startup_print_version
Browse files Browse the repository at this point in the history
Print version on server startup
  • Loading branch information
orenbm authored May 31, 2020
2 parents fadf83c + 71dc05b commit 872b67b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/domain/logs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,11 @@ module Util
code: "CONJ00023D"
)

ConjurVersionStartup = ::Util::TrackableLogMessageClass.new(
msg: "Conjur v{0-conjur-version} starting up...",
code: "CONJ00037I"
)

end
end
end
3 changes: 3 additions & 0 deletions config/initializers/status.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# frozen_string_literal: true
require 'logs'

ENV["CONJUR_VERSION_DISPLAY"] = File.read(File.expand_path("../../VERSION", File.dirname(__FILE__)))

Rails.logger.info(LogMessages::Util::ConjurVersionStartup.new(ENV["CONJUR_VERSION_DISPLAY"].strip))

0 comments on commit 872b67b

Please sign in to comment.