Skip to content

Commit 5a7d78d

Browse files
committed
FIX: hotfix/v0.0.6 profile 에서 admin 제거
* 로그 레벨 수정
1 parent bb8b68c commit 5a7d78d

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ COPY . /app
3131
RUN chmod +x ./gradlew
3232
RUN ./gradlew build -x test
3333

34-
CMD ["java", "-jar", "-Dspring.profiles.active=product,admin", "build/libs/jshop-0.0.6.jar"]
34+
CMD ["java", "-jar", "-Dspring.profiles.active=product", "build/libs/jshop-0.0.6.jar"]

src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ spring:
4242
on-profile: dev
4343
datasource:
4444
driver-class-name: com.mysql.cj.jdbc.Driver
45-
url: jdbc:mysql://localhost:3308/jshop?useSSL=false&serverTimezone=Asia/Seoul&allowPublicKeyRetrieval=true
45+
url: jdbc:mysql://localhost:3306/jshop?useSSL=false&serverTimezone=Asia/Seoul&allowPublicKeyRetrieval=true
4646
username: root
4747
password: 1234
4848

src/main/resources/logback-spring-prod.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@
1818
</encoder>
1919
</appender>
2020

21+
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
22+
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
23+
<level>WARN</level>
24+
</filter>
25+
<encoder>
26+
<Pattern>${PATTERN}</Pattern>
27+
</encoder>
28+
</appender>
29+
30+
2131
<!-- <logger name="jdbc" level="OFF" additive="false">-->
2232
<!-- <appender-ref ref="FILE"/>-->
2333
<!-- </logger>-->
@@ -33,5 +43,6 @@
3343

3444
<root level="INFO">
3545
<appender-ref ref="FILE"/>
46+
<appender-ref ref="STDOUT"/>
3647
</root>
3748
</configuration>

0 commit comments

Comments
 (0)