asinbow.wang
56968e8ad3
fix log debug level detect
...
* reason
there hardcodes DEBUG_LEVEL in logging.rb:
DEBUG_LEVEL = defined?(Logger) ? Logger::DEBUG : 0
this could cause some incompatibility between different logger tools
for Logger, DEBUG/0 < INFO/1 < WARN/2 < ERROR/3 < FATAL/4,
for Log4r, ALL/0 < DETAIL/1 < DEBUG/2 < INFO/3 < WARN/4 < ERROR/5 < FATAL/6.
anyway, it is not in good pattern.
* suggestion
logger.debug { ... }
if current level is greater than DEBUG, the block will not be
evaluated. it is also efficient.
following is also supported by most loggers.
logger.info { ... }
logger.warn { ... }
logger.error { ... }
...
2012-04-27 15:26:49 +08:00
Gary Murakami
52cbaa689f
[Gary] profile_array $LOAD_PATH, Gemfile tweaks
2012-04-11 11:56:45 -04:00
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
Tyler Brock
4ca05fe138
minor: added section on sorting to tutorial
2012-04-10 23:10:52 -04:00
Gary Murakami
e57b469505
[Gary] ruby-prof for bench profiling
2012-04-09 11:42:01 -04:00
Gary Murakami
2390578805
[Gary] exp series benchmark tests for performance and profiling
2012-04-09 11:39:57 -04:00
Tyler Brock
00cea59c10
minor: refactor TCP_NODELAY
2012-04-08 10:48:25 -04:00
Tyler Brock
95a831c0b3
RELEASE 1.6.2
2012-04-05 13:51:20 -04:00
Tyler Brock
ca6f4ecaa5
RUBY-433 prevent additonal possible IOError
2012-04-05 12:47:58 -04:00
Tyler Brock
0bd7d3830d
RUBY-429 wrap IO errors from select and read
2012-04-05 12:47:17 -04:00
Tyler Brock
dfca0dd134
minor: disable refresh with threads for 1.8x
2012-04-05 12:45:34 -04:00
Tyler Brock
4f9aceacf4
RUBY-433 fixes IOError stream closed
2012-04-05 10:52:13 -04:00
Tyler Brock
a5b5d5e3e3
RUBY-429 tweaks to rescued errors
2012-04-04 20:45:29 -04:00
Tyler Brock
58f0ee8fff
RUBY-429 rescue granularity
2012-04-04 20:12:36 -04:00
Tyler Brock
b2a1841f9c
minor: test fix for legacy mongo
2012-04-04 19:10:02 -04:00
Tyler Brock
d42eee278b
minor: testing fixes, cleaning output
2012-04-04 16:44:01 -04:00
Tyler Brock
c992369918
minor: more testing fixes
2012-04-04 15:48:32 -04:00
Tyler Brock
7337a06311
RUBY-429 rescue additional socket and IO errors
2012-04-04 15:10:58 -04:00
Tyler Brock
f58b56a4ee
minor: testing cleanup, suppress mongod startup output in rs tests
2012-04-04 15:10:11 -04:00
Tyler Brock
76bf4dffe5
RUBY-429 rescue and raise appropriate errors
2012-04-04 13:51:04 -04:00
Tyler Brock
92af319412
minor: test cleanup
2012-04-04 13:51:04 -04:00
Gary Murakami
2c67080627
[Gary] more improvements, dropping has its own complete section
2012-04-04 13:25:26 -04:00
Tyler Brock
ee83b6be2c
RUBY-421 fixes for rake reployment tasks
2012-04-03 17:28:42 -04:00
Tyler Brock
e9e0e47cc1
minor: test cleanup and fixes
2012-04-03 16:06:37 -04:00
Tyler Brock
01f28b47ff
RUBY-429 non-blocking IO for socket timeouts
...
Should greatly improve performance for highly threaded applications
using connection and operation timeouts.
2012-04-03 16:06:37 -04:00
Tyler Brock
aab3cf7b74
minor: cleanup thread_to_socket pruning code and test
2012-04-03 16:06:37 -04:00
Gary Murakami
c65b4aadb0
[Gary] Improvements to TUTORIAL, completeness and bug fixes, CRUD reorg, Delete documents, explain, Ruby style
2012-04-03 15:14:43 -04:00
Gary Murakami
9e47109b8f
[Gary] Editing due to minor disconnects of a newbie - might as well make improvements before I'm too tainted by familiarity. Any suggestions for a GFM previewer?
2012-04-02 17:25:01 -04:00
Gary Murakami
d4efbe96f7
fix README gem require for test, typos, JRuby reminders, also add require rubygems to simple.rb
2012-03-30 16:56:51 -04:00
Gary Murakami
481c57c52e
fix bson test hash_with_indifferent_access, missing require
2012-03-30 11:47:06 -04:00
Tyler Brock
0e8eef6cdd
RUBY-420 enforce lower bound on refresh interval
2012-03-21 19:01:37 -04:00
Tyler Brock
6944794fb2
RUBY-422 Cleanup testing output
2012-03-16 16:17:33 -04:00
Tyler Brock
ec86275b60
RUBY-424 Authenticating with only secondary fails
...
Authentication command now prefers to use primary node but will fall
back on secondary if no primary is available
2012-03-15 13:50:02 -04:00
Tyler Brock
7fd0b8dfce
minor: update for replica set docs
2012-03-15 08:32:25 -04:00
Tyler Brock
cf817f5705
minor: fix for ydoc deploy version
2012-03-07 17:50:36 -05:00
Tyler Brock
ddc3e893cb
RELEASE 1.6.1
2012-03-07 16:59:27 -05:00
Tyler Brock
18cad3401b
minor: deploy task typo
2012-03-07 16:58:29 -05:00
Tyler Brock
2af817f0f8
minor: fix for refresh with threads test and rs documentation updates
2012-03-07 16:38:14 -05:00
Tyler Brock
5f6544a53c
minor: update history file
2012-03-07 14:16:57 -05:00
Tyler Brock
5fde3de4a6
RUBY-417 only show logging warning if level is :debug
2012-03-07 14:15:10 -05:00
Tyler Brock
0ae757c69b
RUBY-416 unit test stub fix
2012-03-07 12:38:04 -05:00
Tyler Brock
06bc50fe46
RUBY-416 do not checkout closed sockets
2012-03-07 12:00:10 -05:00
Tyler Brock
8c3283f514
minor: switched additional tests to socket mock
2012-03-06 22:56:39 -05:00
Tyler Brock
03eb8a8c96
RUBY-416 fixes for current thread manager state
2012-03-06 22:32:20 -05:00
Tyler Brock
68f19039d2
minor: updates for replica set tests, mock socket stubs
2012-03-06 17:06:42 -05:00
Tyler Brock
274ce690e7
RUBY-416 threading with refresh test fixes
2012-03-05 14:40:05 -05:00
Tyler Brock
bf9bb83b6d
minor: whitespace fixes
2012-03-02 19:25:17 -05:00
Tyler Brock
93b2f3da9b
minor: Added TCPSocket Class w/ pool accessor
...
Sockets now know what pool they were checked out from
SSLSocket updated as well
2012-03-02 19:16:14 -05:00
Tyler Brock
379c831b8b
minor: test fix for mocha 0.10.5 -- new initializer
2012-03-01 13:03:52 -05:00
Tyler Brock
66227e17c8
minor: more rakefile changes
2012-03-01 12:42:58 -05:00