mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-02 06:12:45 +00:00
Track partition offsets and only log unsafe for non-selects
This commit is contained in:
parent
bfecc8e0e9
commit
7bf2a27319
2 changed files with 15 additions and 2 deletions
|
@ -53,7 +53,7 @@ func (in *traceInterceptor) StmtQueryContext(ctx context.Context, stmt driver.St
|
|||
safe = w.Safe()
|
||||
}
|
||||
}
|
||||
if safe != "" {
|
||||
if safe != "" && !strings.HasPrefix(query, "SELECT ") {
|
||||
logrus.Infof("unsafe: %s -- %s", safe, query)
|
||||
}
|
||||
|
||||
|
@ -75,7 +75,7 @@ func (in *traceInterceptor) StmtExecContext(ctx context.Context, stmt driver.Stm
|
|||
safe = w.Safe()
|
||||
}
|
||||
}
|
||||
if safe != "" {
|
||||
if safe != "" && !strings.HasPrefix(query, "SELECT ") {
|
||||
logrus.Infof("unsafe: %s -- %s", safe, query)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue