0

I use spring 2.4 and logback.I want to close hibernate show_sql property but it doesnt work

I tried this options

in my hibernate.properties,I set hibernate.show_sql=false

in my application.properties

spring.jpa.properties.hibernate.show_sql=false
spring.jpa.show-sql=false

Also I tried to set mycontext with setJpaProperties(set Properties ) here but still doesnt effect

I tried this configurations but still doesnt work

18:03:55.842 [Thread-34] DEBUG org.hibernate.SQL - select my0_.xx as my1_0_, from mytable my0_

[Thread-32] DEBUG o.h.engine.internal.TwoPhaseLoad - Processing attribute name : value =

How can I prevent this logs coming

1 Answer 1

2

I propose to change the hibernate log level using this configuration

logging.level.org.hibernate=INFO
Sign up to request clarification or add additional context in comments.

3 Comments

this is work,thanks do you have any comment why show_sql false not enough because of logback implemantation?
I'm not sure but I think that your logback root log level is DEBUG, isn't it?
yes,as we understand when root level debug that time show_sql useless

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.