Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Commit

Permalink
Fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
binarylogic committed Dec 16, 2016
1 parent e94da19 commit 7d0b732
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Logger.warn "Payment rejected for customer abcd1234, reason: Card expired"

# Structured hash
Logger.warn message: "Payment rejected", type: :payment_rejected,
data: %{customer_id: "abcd1234", amount: 100, reason: "Card expired"}
data: {customer_id: "abcd1234", amount: 100, reason: "Card expired"}

# Using a Struct
PaymentRejectedEvent = Struct.new(:customer_id, :amount, :reason) do
Expand Down Expand Up @@ -120,7 +120,7 @@ A few example queries:

> This is all gravy, but wouldn't the extra data get expensive?
If you opt use the [Timber Console](https://timber.io), we only charge for
If you opt to use the [Timber Console](https://timber.io), we only charge for
the size of the `message`, `dt`, and `event.custom` attributes. Everything else is
stored at no cost to you. [Say wha?!](http://i.giphy.com/l0HlL2vlfpWI0meJi.gif). This ensures
pricing remains predictable. We charge per GB sent to us and retained. No user limits,
Expand Down
4 changes: 2 additions & 2 deletions lib/timber/log_devices/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class HTTP
https.open_timeout = 10
end
DELIVERY_FREQUENCY_SECONDS = 2.freeze
RETRY_LIMIT = 3.freeze
RETRY_LIMIT = 5.freeze
BACKOFF_RATE_SECONDS = 3.freeze


Expand Down Expand Up @@ -68,7 +68,7 @@ def initialize(api_key, options = {})

@last_messages_overflow_count = 0
messages_overflown_count = @buffer.messages_overflown_count
if messages_overflown_count >= @last_messages_overflow_count
if messages_overflown_count > @last_messages_overflow_count
difference = messages_overflown_count - @last_messages_overflow_count
@last_messages_overflow_count = messages_overflown_count
logger.warn("Timber HTTP buffer has overflown #{difference} times")
Expand Down

0 comments on commit 7d0b732

Please sign in to comment.