Skip to content

Commit

Permalink
TEIID-2460 removing the stacktrace unless detail logging is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
shawkins committed May 6, 2013
1 parent 1264d67 commit 4b0b595
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -915,7 +915,11 @@ int free(PhysicalInfo info, boolean demote, boolean acquireDataBlock) {
block = blockStore.writeToStorageBlock(info, is);
}
} catch (IOException e) {
LogManager.logError(LogConstants.CTX_BUFFER_MGR, e, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30016, oid, info.gid));
if (LogManager.isMessageToBeRecorded(LogConstants.CTX_BUFFER_MGR, MessageLevel.DETAIL)) {
LogManager.logError(LogConstants.CTX_BUFFER_MGR, e, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30016, oid, info.gid));
} else {
LogManager.logError(LogConstants.CTX_BUFFER_MGR, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30016, oid, info.gid) + " " + e.getMessage()); //$NON-NLS-1$
}
} finally {
//ensure post conditions
synchronized (info) {
Expand Down

0 comments on commit 4b0b595

Please sign in to comment.