Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

new version

  • Loading branch information...
commit b49b4e08d0c7bbb802737dd4911e81d5b1876bc9 1 parent 7be56dc
Alexey Vasiliev le0pard authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/mongodb_logger/server.rb
  2. +1 −1  lib/mongodb_logger/version.rb
4 lib/mongodb_logger/server.rb
View
@@ -103,12 +103,12 @@ def show(page, layout = true)
:selector => {'_id' => { '$gt' => BSON::ObjectId(log_last_id) }})
while log = tail.next
buffer << partial(:"shared/log", :object => log)
- log_last_id = log['_id']
+ log_last_id = log["_id"].to_s
end
buffer.reverse!
else
@log = @collection.find_one({}, {:sort => ['$natural', -1]})
- log_last_id = @log['_id'] unless @log.blank?
+ log_last_id = @log["_id"].to_s unless @log.blank?
end
content_type :json
2  lib/mongodb_logger/version.rb
View
@@ -1,3 +1,3 @@
module MongodbLogger
- VERSION = "0.1.7"
+ VERSION = "0.1.8"
end
Please sign in to comment.
Something went wrong with that request. Please try again.