Skip to content
Browse files

New API etc.

  • Loading branch information...
1 parent ba47aae commit 6654b278ae1a5e0c81c36c68fe08602ad6c12ac2 Evan Weaver committed
Showing with 3 additions and 5 deletions.
  1. +0 −1 Manifest
  2. +3 −4 lib/scribe/scribe.rb
View
1 Manifest
@@ -6,7 +6,6 @@ Rakefile
conf/scribe.conf
lib/scribe.rb
lib/scribe/debug.rb
-lib/scribe/safe_client.rb
lib/scribe/scribe.rb
test/scribe_test.rb
test/test_helper.rb
View
7 lib/scribe/scribe.rb
@@ -2,12 +2,11 @@
class Scribe
# Created a new client instance. Accepts an optional host, port, default
# category, and flag to control whether newlines are added to each line.
- def initialize(host = "127.0.0.1", port = 1463, category = "Ruby", add_newlines = true)
- @host = host
- @port = port
+ def initialize(servers = "127.0.0.1:1463", category = "Ruby", add_newlines = true)
+ @servers = servers
@category = category
@add_newlines = add_newlines
- @client = ThriftClient.new(ScribeThrift::Client, @host, @port)
+ @client = ThriftClient.new(ScribeThrift::Client, @servers, :randomize_server_list => true)
end
# Log a message. Accepts a string and an optional category.

0 comments on commit 6654b27

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