lib/logster/middleware/viewer.rb in logster-0.8.3 vs lib/logster/middleware/viewer.rb in logster-0.8.4.pre
- old
+ new
@@ -9,10 +9,10 @@
REQUEST_METHOD = "REQUEST_METHOD".freeze
def initialize(app)
@app = app
- @logs_path = Logster.config.subdirectory || "/logs"
+ @logs_path = Logster.config.subdirectory
@path_regex = Regexp.new("^(#{@logs_path}$)|^(#{@logs_path}(/.*))$")
@store = Logster.store or raise ArgumentError.new("store")
@assets_path = File.expand_path("../../../../assets", __FILE__)
@fileserver = Rack::File.new(@assets_path)