summaryrefslogtreecommitdiff
path: root/lib/tapicero_daemon.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tapicero_daemon.rb')
-rw-r--r--lib/tapicero_daemon.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tapicero_daemon.rb b/lib/tapicero_daemon.rb
index a5e41eb..e38a4ad 100644
--- a/lib/tapicero_daemon.rb
+++ b/lib/tapicero_daemon.rb
@@ -8,14 +8,14 @@
require 'tapicero'
module Tapicero
- puts " * Observing #{Config.couch_host_without_password}"
- puts " * Tracking #{Config.users_db_name}"
+ Tapicero.logger.info "Observing #{Config.couch_host_without_password}"
+ Tapicero.logger.info "Tracking #{Config.users_db_name}"
# stream = CouchStream.new(Config.couch_host + '/' + Config.users_db_name)
db = CouchRest.new(Config.couch_host).database(Config.users_db_name)
users = CouchChanges.new(db, Config.seq_file)
users.created do |hash|
- puts "Created user " + hash['id']
+ Tapicero.logger.debug "Created user " + hash['id']
db = UserDatabase.new(Config.couch_host, Config.db_prefix + hash['id'])
db.create
db.secure(Config.security)