Skip to content

Commit

Permalink
hide SQL in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
yvasyliev committed Nov 24, 2023
1 parent 309a752 commit 1e0a979
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Spring Boot-based Java application to forward Reddit posts to Telegram channel.
cd target
```
* Or
download [executable JAR](https://github.com/yvasyliev/reddit-telegram-forwarder/releases/latest/download/reddit-telegram-forwarder-3.0.0-beta1.jar)
download [executable JAR](https://github.com/yvasyliev/reddit-telegram-forwarder/releases/latest/download/reddit-telegram-forwarder-3.0.0-beta2.jar)
from the [latest release](https://github.com/yvasyliev/reddit-telegram-forwarder/releases/latest).
4. Run the app:
```shell
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<groupId>com.github.yvasyliev</groupId>
<artifactId>reddit-telegram-forwarder</artifactId>
<version>3.0.0-beta1</version>
<version>3.0.0-beta2</version>

<properties>
<maven.compiler.source>17</maven.compiler.source>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spring.jpa.database-platform=org.hibernate.community.dialect.SQLiteDialect
spring.jpa.hibernate.ddl-auto=update
spring.jpa.properties.hibernate.format_sql=true
spring.jpa.properties.hibernate.highlight_sql=true
#spring.jpa.show-sql=true
spring.jpa.show-sql=true

spring.main.web-application-type=none

Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<Appenders>
<Console name="stdout" target="SYSTEM_OUT">
<PatternLayout disableAnsi="false" pattern="%d{HH:mm:ss.SSS} [%t] %highlight{%-5level} %style{%logger{36}}{magenta} - %msg%n"/>
<!-- <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>-->
</Console>
<RollingFile name="roll-by-time-and-size"
fileName="reddit-telegram-forwarder.log"
Expand Down Expand Up @@ -32,7 +33,7 @@
<Logger name="org.springframework" level="warn"/>
<Logger name="org.apache.http" level="warn"/>
<Logger name="org.hibernate" level="warn"/>
<Logger name="org.hibernate.SQL" level="debug"/>
<!-- <Logger name="org.hibernate.SQL" level="debug"/>-->
<Logger name="org.jboss.logging" level="warn"/>
<Logger name="org.sqlite.core" level="warn"/>
<Logger name="com.zaxxer.hikari" level="warn"/>
Expand Down

0 comments on commit 1e0a979

Please sign in to comment.