lib/timber/config.rb in timber-2.5.1 vs lib/timber/config.rb in timber-2.6.0.pre.beta1
- old
+ new
@@ -23,10 +23,11 @@
def call(severity, timestamp, progname, msg)
"[Timber] #{String === msg ? msg : msg.inspect}\n"
end
end
+ DEFAULT_HTTP_BODY_LIMIT = 2048.freeze
DEVELOPMENT_NAME = "development".freeze
PRODUCTION_NAME = "production".freeze
STAGING_NAME = "staging".freeze
TEST_NAME = "test".freeze
@@ -34,10 +35,10 @@
attr_writer :http_body_limit
# @private
def initialize
- @http_body_limit = 2048
+ @http_body_limit = DEFAULT_HTTP_BODY_LIMIT
end
# Convenience method for logging debug statements to the debug logger
# set in this class.
# @private
\ No newline at end of file