log to console on replication error.
Merge pull request #41 from mandric/master

log to console on replication error.