Skip to content

Commit

Permalink
Made enhancer configuration conditional.
Browse files Browse the repository at this point in the history
  • Loading branch information
ekharkunov committed Oct 16, 2024
1 parent 548d577 commit c6e18c2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
package com.defold.extender.log;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;

import com.google.cloud.MonitoredResource;
import com.google.cloud.spring.core.DefaultGcpProjectIdProvider;

@Component
@ConditionalOnProperty(name = "spring.cloud.gcp.logging.enabled", havingValue = "true")
public class ExtenderLogEnhancerConfiguration {

private String instanceName;
Expand Down

0 comments on commit c6e18c2

Please sign in to comment.