Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
milaGGL committed Oct 24, 2024
1 parent ba1f0c9 commit 72bb99f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ static boolean shouldCreateEnabledInstance() {
// TODO(metrics): The feature is disabled before it is ready for general release.
boolean shouldCreateEnabledInstance = true;

System.out.println("============1");
String enableMetricsEnvVar = System.getenv(ENABLE_METRICS_ENV_VAR);
System.out.println("============2:"+enableMetricsEnvVar);

if (enableMetricsEnvVar != null) {
switch (enableMetricsEnvVar.toLowerCase()) {
case "true":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ public void defaultOptionsUseEnabledMetricsUtil() {

@Test
public void environmentVariableCanSetToUseDisabledMetricsUtil() {
System.out.println("============start");

environmentVariables.set("FIRESTORE_ENABLE_METRICS", "off");
System.out.println("============set");

MetricsUtil util =
MetricsUtil.getInstance(
Expand Down

0 comments on commit 72bb99f

Please sign in to comment.