Skip to content

Commit

Permalink
add log_queries properly during connection initialization
Browse files Browse the repository at this point in the history
Signed-off-by: Slach <[email protected]>
  • Loading branch information
Slach committed Nov 15, 2024
1 parent 0c3e0a2 commit 3607c33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ BUG FIXES

- fix possible wrong merging after ATTACH PART for Collapsing and Replacing engines without version,
look https://github.com/ClickHouse/ClickHouse/issues/71009 for details
- add `log_queries` properly during connection initialization

# v2.6.3
IMPROVEMENTS
Expand Down
2 changes: 2 additions & 0 deletions pkg/clickhouse/clickhouse.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ func (ch *ClickHouse) Connect() error {
}
if !ch.Config.LogSQLQueries {
opt.Settings["log_queries"] = 0
} else {
opt.Settings["log_queries"] = 1
}

logLevel := zerolog.InfoLevel
Expand Down

0 comments on commit 3607c33

Please sign in to comment.