Skip to content
Browse files

pulling in active_support early will blow up rails 3.2.3 - so compute…

… MB.
  • Loading branch information...
1 parent 2ee0757 commit 066901974c25d36d5cc0ddf5df6aa080b371d178 @ahoward ahoward committed Apr 4, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 lib/central_logger/mongo_logger.rb
View
7 lib/central_logger/mongo_logger.rb
@@ -1,15 +1,14 @@
require 'erb'
require 'mongo'
-require 'active_support'
-require 'active_support/core_ext'
require 'central_logger/replica_set_helper'
module CentralLogger
class MongoLogger < ActiveSupport::BufferedLogger
include ReplicaSetHelper
- PRODUCTION_COLLECTION_SIZE = 250.megabytes
- DEFAULT_COLLECTION_SIZE = 100.megabytes
+ MB = 2 ** 20
+ PRODUCTION_COLLECTION_SIZE = 256 * MB
+ DEFAULT_COLLECTION_SIZE = 128 * MB
# Looks for configuration files in this order
CONFIGURATION_FILES = ["central_logger.yml", "mongoid.yml", "database.yml"]
LOG_LEVEL_SYM = [:debug, :info, :warn, :error, :fatal, :unknown]

0 comments on commit 0669019

Please sign in to comment.
Something went wrong with that request. Please try again.