mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-22 11:02:30 +01:00
Remove unused logger
This commit is contained in:
parent
60f980a6ee
commit
0320b810c5
@ -1,12 +1,11 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'logger'
|
|
||||||
require 'pathname'
|
require 'pathname'
|
||||||
|
|
||||||
# Encapsulates app configuration
|
# Encapsulates app configuration
|
||||||
module App
|
module App
|
||||||
class << self
|
class << self
|
||||||
attr_reader :logger, :version, :released_at
|
attr_reader :version, :released_at
|
||||||
|
|
||||||
def env
|
def env
|
||||||
ENV['RACK_ENV'] || 'development'
|
ENV['RACK_ENV'] || 'development'
|
||||||
@ -17,7 +16,6 @@ module App
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@logger = Logger.new(STDOUT)
|
|
||||||
@version = `git rev-parse --short HEAD 2>/dev/null`.strip!
|
@version = `git rev-parse --short HEAD 2>/dev/null`.strip!
|
||||||
@released_at = `git show -s --format=%ci HEAD`
|
@released_at = `git show -s --format=%ci HEAD`
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user