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

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
tony19 committed Feb 8, 2018
1 parent e7088d1 commit e652f56
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,13 @@ public static void main(String[] args) throws Exception {

LogglyBatchAppender<String> appender = new LogglyBatchAppender<String>() {
@Override
protected void processLogEntries(InputStream in) throws IOException {
protected void processLogEntries(InputStream in) {
// super.processLogEntries(in);
IoUtils.copy(in, out);
try {
IoUtils.copy(in, out);
} catch (IOException e) {
e.printStackTrace();
}
}
};
appender.setInputKey("YOUR LOGGLY INPUT KEY");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ protected HttpURLConnection getHttpConnection(URL url) throws IOException {
}

@Override
protected void processLogEntries(InputStream in) throws IOException {
protected void processLogEntries(InputStream in) {
super.processLogEntries(in);
synchronized(appender) {
notifyAll();
Expand Down

0 comments on commit e652f56

Please sign in to comment.