Skip to content

Commit e7daf1f

Browse files
committed
Fixed codacy bot issues
1 parent 4801395 commit e7daf1f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

google-cloud-logging/src/main/java/com/google/cloud/logging/GaeFlexLoggingEnhancer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
public class GaeFlexLoggingEnhancer implements LoggingHandler.Enhancer {
3838

3939
private static final ThreadLocal<String> traceId = new ThreadLocal<>();
40+
41+
private String gaeInstanceId;
4042

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

59-
private String gaeInstanceId;
60-
6161
@Override
6262
public void enhanceMonitoredResource(Builder builder) {
6363
gaeInstanceId = System.getenv("GAE_INSTANCE"); // Are we running on a GAE instance?

google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingHandler.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,6 @@ List<Enhancer> getEnhancerProperty(String name) {
277277
}
278278
return enhancers;
279279
} catch (Exception ex) {
280-
ex.printStackTrace();
281280
// If we cannot create the enhancers we fall back to the default
282281
}
283282
return Collections.emptyList();

0 commit comments

Comments
 (0)