Permalink
Browse files

change redis set_add to sadd

  • Loading branch information...
1 parent 0667d71 commit 4908134c7176834684edd0e64303b695abff2f1d Adam Saegebarth committed Apr 11, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/redis_logger.rb
View
@@ -131,11 +131,11 @@ def self.add_entry(log_entry, level, sets = nil)
sets = []
end
# TODO: Shouldn't need to add the level every time; could do it once at startup?
- redis.set_add "logger:sets", level
- redis.set_add "logger:set:#{level}", tstamp
+ redis.sadd "logger:sets", level
+ redis.sadd "logger:set:#{level}", tstamp
sets.each do |set|
- redis.set_add "logger:sets", set
- redis.set_add "logger:set:#{set}", tstamp
+ redis.sadd "logger:sets", set
+ redis.sadd "logger:set:#{set}", tstamp
end
end
end

0 comments on commit 4908134

Please sign in to comment.