Hello,
Is there a recommended way to log strings from production error cases?
Specifically, sometimes we get SQLITE_ERROR in Chromium, and we want to learn which is the problematic SQL query.
We _could_ try to enumerate all the queries and log them to a UMA histogram, but there's a lot of queries and I suspect it's a unknown or obscure query that's causing the issue.
The best thing I can think of is adding a CrashKeyString and calling base::debug::DumpWithoutCrashing() when this error condition occurs.
But is there a better way?
Related question: is there a canonical way to downsample so I don't generate a million crash reports?
Thanks,
Tommy