Commit Graph

26 Commits

Author SHA1 Message Date
Gary Murakami
64c87e93a3 [Gary] require test_helper edits to work everywhere including via IDE (RubyMine), Gemfile for JRuby 2012-04-11 11:08:04 -04:00
Kyle Banker
b79d408a11 Enable log duration by default for :debug-level logging. 2012-02-16 14:01:09 -05:00
Kyle Banker
2e48229a3b Merge pull request #64 from songbird/songbird-collection-logging
Allow logging from Collection using Connection logger.
2011-11-28 10:19:10 -08:00
Kyle Banker
6345820eae RUBY-345 update logging startup message 2011-11-15 15:59:42 -05:00
Kyle Banker
7a11bb18a9 Ensure that cursor requiring getmore ops will not
be affected by replica set refresh.

Prep for sending commands to secondaries.
2011-10-17 14:41:09 -04:00
slloyd
92a2e86d9a Allow logging from Collection using Connection logger 2011-10-11 10:25:24 -07:00
Kyle Banker
e678bac75e RUBY-306 clean up logging. 2011-09-07 17:14:53 -04:00
Wojciech Piekutowski
27046e2b3a Unify test_helper.rb loading code 2011-02-20 16:03:05 +01:00
Kyle Banker
5017646209 minor: test fix and cleanup 2011-01-31 15:53:38 -05:00
Steve Sloan
8a7296599b Refactored logging of DB operations to use Connection#instrument.
This allows for easy overriding, e.g. to ActiveSupport notifications.
2011-01-31 15:13:12 -05:00
Kyle Banker
ae202d590e RUBY-192; Updates for Collection#ensure_index 2011-01-03 16:16:24 -05:00
Matthew Rathbone
d33ddfb8e0 added ensure_index 2010-11-11 16:21:23 -05:00
Kyle Banker
7309d7e48b Path fixes for test in Ruby 1.9.2 2010-09-09 15:58:51 -04:00
Kyle Banker
300b442a94 Create logging message only when a logger is passed to the Connection.
Results in a pretty significant performance improvement.

Many thanks to Matt Taylor for noticing the unusual glut of calls
to ObjectId#to_s. See here: http://unhalting.com/?p=18
2010-09-08 14:27:27 -04:00
Kyle Banker
c4d5cb641b renamed mongo_bson to bson 2010-04-05 10:39:55 -04:00
Kyle Banker
a94a870202 log messages read like valid ruby driver code 2010-03-23 22:40:43 -07:00
Kyle Banker
8faa243484 added sort to query logging RUBY-101 2010-03-15 11:51:22 -04:00
Kyle Banker
89fe06250e re-require shoulda; gridfs decoupling 2010-02-22 15:49:04 -05:00
Kyle Banker
54a68c7438 minor: removed shoulda dependency 2010-02-19 19:17:38 -05:00
Kyle Banker
a6310a0a4f not logging binary data RUBY-90 2010-02-08 13:48:18 -05:00
Kyle Banker
f8a6d1ebb9 minor: docs, whitespace, naming 2009-12-16 14:16:49 -05:00
Kyle Banker
ab0d189832 Simplified message sending methods names; organized Connection 2009-11-24 14:23:43 -05:00
Kyle Banker
11a92349e9 Merged branch for initial connection pooling code 2009-11-23 15:20:05 -05:00
Kyle Banker
867783c665 Added support for multi-update (available in mongo >= 1.1.3) 2009-11-05 16:08:54 -05:00
Kyle Banker
f891b4ece3 Updates and insert in safe mode are now thread-safe. 2009-11-05 15:14:48 -05:00
Kyle Banker
68bb1d2060 minor: Initial collection unit tests. Logging message update. 2009-11-02 15:50:16 -05:00