Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.

Commit

Permalink
turning down logging on classcast miss
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Whalin committed Jun 5, 2009
1 parent dc0d8a5 commit 4945562
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/com/meetup/memcached/MemcachedClient.java
Expand Up @@ -1338,8 +1338,7 @@ public Object get( String key, Integer hashCode, boolean asString ) {
if ( errorHandler != null )
errorHandler.handleErrorOnGet( this, e, key );

log.error( "++++ IOException thrown while trying to uncompress input stream for key: " + key );
log.error( e.getMessage(), e );
log.error( "++++ IOException thrown while trying to uncompress input stream for key: " + key + " -- " + e.getMessage() );
throw new NestedIOException( "++++ IOException thrown while trying to uncompress input stream for key: " + key, e );
}
}
Expand Down Expand Up @@ -1383,7 +1382,7 @@ public Object get( String key, Integer hashCode, boolean asString ) {
if ( errorHandler != null )
errorHandler.handleErrorOnGet( this, e, key );

log.error( "++++ ClassNotFoundException thrown while trying to deserialize for key: " + key, e );
log.error( "++++ ClassNotFoundException thrown while trying to deserialize for key: " + key + " -- " + e.getMessage() );
throw new NestedIOException( "+++ failed while trying to deserialize for key: " + key, e );
}
}
Expand All @@ -1406,8 +1405,7 @@ else if ( END.equals( line ) ) {
errorHandler.handleErrorOnGet( this, e, key );

// exception thrown
log.error( "++++ exception thrown while trying to get object from cache for key: " + key );
log.error( e.getMessage(), e );
log.error( "++++ exception thrown while trying to get object from cache for key: " + key + " -- " + e.getMessage() );

try {
sock.trueClose();
Expand Down Expand Up @@ -1681,8 +1679,7 @@ private void loadMulti( LineInputStream input, Map<String,Object> hm, boolean as
if ( errorHandler != null )
errorHandler.handleErrorOnGet( this, e, key );

log.error( "++++ IOException thrown while trying to uncompress input stream for key: " + key );
log.error( e.getMessage(), e );
log.error( "++++ IOException thrown while trying to uncompress input stream for key: " + key + " -- " + e.getMessage() );
throw new NestedIOException( "++++ IOException thrown while trying to uncompress input stream for key: " + key, e );
}
}
Expand All @@ -1706,7 +1703,7 @@ private void loadMulti( LineInputStream input, Map<String,Object> hm, boolean as
if ( errorHandler != null )
errorHandler.handleErrorOnGet( this, e, key );

log.error( "++++ Exception thrown while trying to deserialize for key: " + key, e );
log.error( "++++ Exception thrown while trying to deserialize for key: " + key + " -- " + e.getMessage() );
throw new NestedIOException( e );
}
}
Expand All @@ -1726,7 +1723,7 @@ private void loadMulti( LineInputStream input, Map<String,Object> hm, boolean as
if ( errorHandler != null )
errorHandler.handleErrorOnGet( this, e, key );

log.error( "++++ ClassNotFoundException thrown while trying to deserialize for key: " + key, e );
log.error( "++++ ClassNotFoundException thrown while trying to deserialize for key: " + key + " -- " + e.getMessage() );
throw new NestedIOException( "+++ failed while trying to deserialize for key: " + key, e );
}
}
Expand Down

0 comments on commit 4945562

Please sign in to comment.