cos.resetOut(null, false); } catch (Exception ex) {
cos.resetOut(null, false); } catch (Exception ex) {
cos.resetOut(null, false); } catch (Exception ex) {
cos.resetOut(null, false); } catch (Exception ex) {
cos.resetOut(null, false); } catch (Exception ex) {
public void onClose(CachedOutputStream cos) { final LogEvent event = new DefaultLogEventMapper().map(message); if (shouldLogContent(event)) { copyPayload(cos, event); } else { event.setPayload(CONTENT_SUPPRESSED); } sender.send(event); try { // empty out the cache cos.lockOutputStream(); cos.resetOut(null, false); } catch (Exception ex) { // ignore } message.setContent(OutputStream.class, origStream); }
cos.resetOut(null, false); } catch (Exception ex) {
public void onClose(CachedOutputStream cos) { final LogEvent event = new DefaultLogEventMapper().map(message); if (shouldLogContent(event)) { copyPayload(cos, event); } else { event.setPayload(CONTENT_SUPPRESSED); } sender.send(event); try { // empty out the cache cos.lockOutputStream(); cos.resetOut(null, false); } catch (Exception ex) { // ignore } message.setContent(OutputStream.class, origStream); }