We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have found several posts about this but none that really solve the problem, lot of them are really old
Technology used
Pom.xml dependecy
<dependencyManagement> <dependencies> <dependency> <groupId>com.google.cloud</groupId> <artifactId>libraries-bom</artifactId> <version>${libraries-bom.version}</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupId>com.google.cloud</groupId> <artifactId>spring-cloud-gcp-dependencies</artifactId> <version>6.1.0</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> <dependencies> <dependency> <groupId>com.google.cloud</groupId> <artifactId>spring-cloud-gcp-starter-logging</artifactId> </dependency> <dependency> <groupId>com.google.cloud</groupId> <artifactId>spring-cloud-gcp-starter-trace</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> <dependency> <groupId>org.springframework.restdocs</groupId> <artifactId>spring-restdocs-mockmvc</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>com.google.cloud</groupId> <artifactId>spring-cloud-gcp-dependencies</artifactId> <version>2.0.3</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupId>com.google.cloud</groupId> <artifactId>spring-cloud-gcp-starter-storage</artifactId> <version>2.0.3</version> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>${lombok.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.fasterxml.jackson.datatype</groupId> <artifactId>jackson-datatype-hibernate6</artifactId> <version>2.15.0</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.module</groupId> <artifactId>jackson-module-mrbean</artifactId> <version>2.11.0</version> </dependency> <!--Doc https://github.com/jwtk/jjwt?tab=readme-ov-file#what-is-a-json-web-token--> <dependency> <groupId>io.jsonwebtoken</groupId> <artifactId>jjwt</artifactId> <version>0.12.6</version> </dependency> <!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api --> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-api</artifactId> <version>5.11.3</version> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> <exclusions> <exclusion> <groupId>org.ow2.asm</groupId> <artifactId>asm</artifactId> </exclusion> <exclusion> <groupId>org.hamcrest</groupId> <artifactId>hamcrest-core</artifactId> </exclusion> </exclusions> </dependency> </dependencies>
This is my logback-spring.xml
<configuration> <include resource="org/springframework/boot/logging/logback/defaults.xml" /> <include resource="org/springframework/boot/logging/logback/console-appender.xml" /> <springProfile name="dev"> <appender name="CONSOLE_JSON" class="ch.qos.logback.core.ConsoleAppender"> <encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder"> <layout class="com.google.cloud.spring.logging.StackdriverJsonLayout"> <projectId>${projectId}</projectId> </layout> </encoder> </appender> <root level="INFO"> <appender-ref ref="CONSOLE_JSON" /> </root> </springProfile> <springProfile name="localdev"> <root level="INFO"> <appender-ref ref="CONSOLE"/> </root> </springProfile> </configuration>
If I use localdev profile no problem, logs are shown in console and everything is ok.
localdev
When I deploy to CloudRun and then use the dev profile I have this set of strange logs when I start the spring instance:
dev
And when i call my endpoint this is the result:
the logs are grouped, it is true, but what do all those warning messages during the start-up of the spring istance mean?
This is an example of my controller:
Can anyone help me?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have found several posts about this but none that really solve the problem, lot of them are really old
Technology used
Pom.xml dependecy
This is my logback-spring.xml
If I use
localdev
profile no problem, logs are shown in console and everything is ok.When I deploy to CloudRun and then use the
dev
profile I have this set of strange logs when I start the spring instance:And when i call my endpoint this is the result:
the logs are grouped, it is true, but what do all those warning messages during the start-up of the spring istance mean?
This is an example of my controller:
Can anyone help me?
The text was updated successfully, but these errors were encountered: