Skip to content

Commit

Permalink
Merge branch 'main' into blaze-views-1
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Jun 14, 2024
2 parents b505c55 + b11a0ee commit 8f7715a
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ orbs:
executors:
machine_executor_amd64:
machine:
image: ubuntu-2204:current
image: ubuntu-2404:current
environment:
architecture: "amd64"
platform: "linux/amd64"
Expand Down
2 changes: 1 addition & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ vscode:
extensions:
- Pivotal.vscode-boot-dev-pack
- vscjava.vscode-java-pack
- richardwillis.vscode-gradle
- vscjava.vscode-gradle

ports:
- port: 8080
Expand Down
14 changes: 0 additions & 14 deletions Dockerfile

This file was deleted.

6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ group = "com.learning.mfscreener"
version = "0.0.1-SNAPSHOT"

java {
sourceCompatibility = '17'
targetCompatibility = '17'
sourceCompatibility = '21'
targetCompatibility = '21'
}

configurations {
Expand Down Expand Up @@ -208,4 +208,4 @@ eclipse {
entries.add(src)
}
}
}
}
2 changes: 1 addition & 1 deletion docker/docker-compose-monitoring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ services:
- --config.file=/etc/prometheus/prometheus.yml

loki:
image: grafana/loki:2.9.8
image: grafana/loki:3.0.0
container_name: loki
extra_hosts: [ 'host.docker.internal:host-gateway' ]
command: -config.file=/etc/loki/local-config.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,13 @@ private void logExecutionDetails(ProceedingJoinPoint joinPoint, LogLevel logLeve
private void logMethodParamsIfEnabled(ProceedingJoinPoint joinPoint, LogLevel logLevel, String methodName) {
boolean printParams = shouldLog(joinPoint, Loggable::params);

if (printParams && !ObjectUtils.isEmpty(joinPoint.getArgs())) {
if (printParams && joinPoint.getArgs() != null && !ObjectUtils.isEmpty(joinPoint.getArgs())) {
String[] parameterNames = ((MethodSignature) joinPoint.getSignature()).getParameterNames();
List<String> stringArrayList = getParamsList(joinPoint, parameterNames);
String argsString = String.join(", ", stringArrayList);
logExecutionDetails(joinPoint, logLevel, methodName + "() args :: -> " + argsString);
if (parameterNames != null) {
List<String> stringArrayList = getParamsList(joinPoint, parameterNames);
String argsString = String.join(", ", stringArrayList);
logExecutionDetails(joinPoint, logLevel, methodName + "() args :: -> " + argsString);
}
}
}

Expand Down
4 changes: 4 additions & 0 deletions src/test/java/com/learning/mfscreener/TestApplication.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.learning.mfscreener;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.devtools.restart.RestartScope;
import org.springframework.boot.test.context.TestConfiguration;
import org.springframework.boot.testcontainers.service.connection.ServiceConnection;
import org.springframework.context.annotation.Bean;
Expand All @@ -13,18 +14,21 @@ public class TestApplication {

@Bean
@ServiceConnection(name = "redis")
@RestartScope
GenericContainer<?> redisContainer() {
return new GenericContainer<>(DockerImageName.parse("redis").withTag("7.2.4-alpine")).withExposedPorts(6379);
}

@Bean
@ServiceConnection
@RestartScope
PostgreSQLContainer<?> postgreSQLContainer() {
return new PostgreSQLContainer<>(DockerImageName.parse("postgres").withTag("16-alpine"));
}

@Bean
@ServiceConnection(name = "openzipkin/zipkin")
@RestartScope
GenericContainer<?> zipkinContainer() {
return new GenericContainer<>("openzipkin/zipkin:latest").withExposedPorts(9411);
}
Expand Down

0 comments on commit 8f7715a

Please sign in to comment.