Skip to content
Browse files

Explicitly call LogManager.shutdown() in the sample app.

Otherwise, log4j doesn't call the appender's close() method,
triggering the AWS SDK bug.
  • Loading branch information...
1 parent c54bf08 commit ceed75e3129f795fe7a97ce22c87e1112ac2e5e8 @apetresc committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/test/java/com/twitsprout/appender/sns/
4 src/test/java/com/twitsprout/appender/sns/
@@ -3,6 +3,7 @@
import java.util.Properties;
+import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
@@ -16,5 +17,8 @@ public static void main(String[] args) throws IOException {
logger.fatal("This is a test");
+ // This is currently necessary to do explicitly due to a "bug" in the AWS SDK.
+ LogManager.shutdown();

0 comments on commit ceed75e

Please sign in to comment.
Something went wrong with that request. Please try again.