Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
pulling in active_support early will blow up rails 3.2.3 - so compute…
Browse files Browse the repository at this point in the history
… MB.
  • Loading branch information
ahoward committed Apr 4, 2012
1 parent 2ee0757 commit 0669019
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/central_logger/mongo_logger.rb
Original file line number Diff line number Diff line change
@@ -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]
Expand Down

0 comments on commit 0669019

Please sign in to comment.