Merge pull request #3330 from AndrewKvalheim/sentry-ruby-5.10
Fix bug in naming of Sentry release
This commit is contained in:
commit
731c14dd71
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ Sentry.init do |config|
|
||||||
# Unless someone has set a variable of course...
|
# Unless someone has set a variable of course...
|
||||||
osem_version_from_file = nil
|
osem_version_from_file = nil
|
||||||
version_file = File.expand_path('../../tmp/restart.txt', __dir__)
|
version_file = File.expand_path('../../tmp/restart.txt', __dir__)
|
||||||
osem_version_from_file = File.new(version_file).atime.to_i if File.file?(version_file)
|
osem_version_from_file = File.new(version_file).atime.strftime('%s') if File.file?(version_file)
|
||||||
osem_version = ENV.fetch('OSEM_SENTRY_RELEASE', osem_version_from_file)
|
osem_version = ENV.fetch('OSEM_SENTRY_RELEASE', osem_version_from_file)
|
||||||
config.release = osem_version if osem_version
|
config.release = osem_version if osem_version
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue