Skip to content

Commit

Permalink
Fixed codacy bot issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gregw committed Jan 16, 2017
1 parent 4801395 commit e7daf1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
public class GaeFlexLoggingEnhancer implements LoggingHandler.Enhancer {

private static final ThreadLocal<String> traceId = new ThreadLocal<>();

private String gaeInstanceId;

/**
* Set the Trace ID associated with any logging done by
Expand All @@ -56,8 +58,6 @@ public static String getCurrentTraceId() {
return traceId.get();
}

private String gaeInstanceId;

@Override
public void enhanceMonitoredResource(Builder builder) {
gaeInstanceId = System.getenv("GAE_INSTANCE"); // Are we running on a GAE instance?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,6 @@ List<Enhancer> getEnhancerProperty(String name) {
}
return enhancers;
} catch (Exception ex) {
ex.printStackTrace();
// If we cannot create the enhancers we fall back to the default
}
return Collections.emptyList();
Expand Down

0 comments on commit e7daf1f

Please sign in to comment.