Skip to content

[Feat-1083] fix: отключен show-sql для production#1089

Open
Textile86 wants to merge 1 commit intohexlet-volunteers:mainfrom
Textile86:issue-1083
Open

[Feat-1083] fix: отключен show-sql для production#1089
Textile86 wants to merge 1 commit intohexlet-volunteers:mainfrom
Textile86:issue-1083

Conversation

@Textile86
Copy link
Copy Markdown

Closes #1083

  • Удалён show-sql: true из application.yml
  • Добавлен show-sql: true в application-dev.yml
  • Добавлен show-sql: false в application-prod.yml

Теперь SQL запросы не выводятся в консоль на production, но продолжают выводиться в development окружении. В production улучшится производительность, в консоли не будут выводится SQL запросы содержащие данные пользователей (улучшится безопасность), логи станут чище и не будут заполнять память.

jpa:
database-platform: org.hibernate.dialect.PostgreSQLDialect

show-sql: false
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

По умолчанию же false вроде?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Backend: отключить show-sql для production

2 participants