Skip to content

Commit

Permalink
Add more logging to the auto tap client
Browse files Browse the repository at this point in the history
  • Loading branch information
trondn committed May 20, 2011
1 parent c89d79a commit 864ee30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/couchbase/norbye/TapClient.java
Expand Up @@ -34,9 +34,10 @@ public TapClient(MemcachedClient client) {
@Override
public void execute() {
try {
Logger.getLogger(TapClient.class.getName()).log(Level.FINE, "Starting tap for {0}", Thread.currentThread().getName());
client.tap(Thread.currentThread().getName(), new RandomErrorTapConsumer());
} catch (EOFException ex) {
Logger.getLogger(TapClient.class.getName()).log(Level.FINE, null, ex);
Logger.getLogger(TapClient.class.getName()).log(Level.FINE, "EOF", ex);
} catch (IOException ex) {
Logger.getLogger(TapClient.class.getName()).log(Level.SEVERE, null, ex);
}
Expand Down

0 comments on commit 864ee30

Please sign in to comment.