mirror of
https://github.com/VinGarcia/ksql.git
synced 2025-07-13 15:48:25 +00:00
Improve log injection example
This commit is contained in:
parent
22a26aeb18
commit
ecd2ea45aa
@ -94,4 +94,8 @@ func main() {
|
||||
if err != nil {
|
||||
panic(err.Error())
|
||||
}
|
||||
|
||||
// Here we are provoking an error, so we can see an error on the log:
|
||||
_ = db.QueryOne(ctx, &alison, "not a valid query", "someFakeParams")
|
||||
// This logs: {"query":"not a valid query","params":["someFakeParams"],"error":"error running query: near \"not\": syntax error"}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user