File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
google-cloud-logging/src/main/java/com/google/cloud/logging Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 3737public 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?
Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments