summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/tapicero/couch_changes.rb2
-rw-r--r--lib/tapicero_daemon.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/tapicero/couch_changes.rb b/lib/tapicero/couch_changes.rb
index 64ae123..b45d54a 100644
--- a/lib/tapicero/couch_changes.rb
+++ b/lib/tapicero/couch_changes.rb
@@ -58,7 +58,7 @@ module Tapicero
raise StandardError.new("Can't access sequence file")
end
@since = File.read(seq_filename).to_i
- puts @since
+ Tapicero.logger.debug "Found sequence: #{@since}"
rescue Errno::ENOENT => e
Tapicero.logger.warn "No sequence file found. Starting from scratch"
end
diff --git a/lib/tapicero_daemon.rb b/lib/tapicero_daemon.rb
index 3a26296..9223acb 100644
--- a/lib/tapicero_daemon.rb
+++ b/lib/tapicero_daemon.rb
@@ -22,7 +22,7 @@ module Tapicero
end
users.deleted do |hash|
- puts "Deleted user " + hash['id']
+ Tapicero.logger.debug "Deleted user " + hash['id']
db = UserDatabase.new(Config.couch_host, Config.db_prefix + hash['id'])
db.destroy
end