mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
Merge remote-tracking branch 'origin/main' into dumb-count
This commit is contained in:
commit
eae48f64e1
1 changed files with 6 additions and 1 deletions
|
|
@ -27,7 +27,12 @@ export const SqliteWorker = {
|
|||
|
||||
if (perf) {
|
||||
const { duration } = perf.measure('end', 'start');
|
||||
console.debug(`${sql} \x1b[90m(${(duration / 1000).toFixed(2)}s)\x1b[0m`);
|
||||
|
||||
console.debug(
|
||||
sql.replace(/\s+/g, ' '),
|
||||
JSON.stringify(parameters),
|
||||
`\x1b[90m(${(duration / 1000).toFixed(2)}s)\x1b[0m`,
|
||||
);
|
||||
|
||||
perf.clearMarks();
|
||||
perf.clearMeasures();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue