From 3743e4a9a0b6376106f0075c66675a1bf4daa20a Mon Sep 17 00:00:00 2001 From: Kharkunov Eugene Date: Wed, 16 Oct 2024 11:25:31 +0300 Subject: [PATCH] Made enhancer configuration conditional. --- .../defold/extender/log/ExtenderLogEnhancerConfiguration.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/src/main/java/com/defold/extender/log/ExtenderLogEnhancerConfiguration.java b/server/src/main/java/com/defold/extender/log/ExtenderLogEnhancerConfiguration.java index 3017f91a..0550db88 100644 --- a/server/src/main/java/com/defold/extender/log/ExtenderLogEnhancerConfiguration.java +++ b/server/src/main/java/com/defold/extender/log/ExtenderLogEnhancerConfiguration.java @@ -1,6 +1,7 @@ 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; @@ -8,6 +9,7 @@ import com.google.cloud.spring.core.DefaultGcpProjectIdProvider; @Component +@ConditionalOnProperty(name = "spring.cloud.gcp.logging.enabled", havingValue = "true") public class ExtenderLogEnhancerConfiguration { private String instanceName;