remult 0.27.23-next.2 → 0.27.23-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -228,7 +228,7 @@ class LogSQLCommand {
|
|
|
228
228
|
let r = await this.origin.execute(sql);
|
|
229
229
|
if (this.logToConsole !== false) {
|
|
230
230
|
var d = new Date().valueOf() - start.valueOf();
|
|
231
|
-
if (d
|
|
231
|
+
if (d >= SqlDatabase.durationThreshold) {
|
|
232
232
|
const duration = d / 1000;
|
|
233
233
|
if (this.logToConsole === 'oneLiner') {
|
|
234
234
|
const rawSql = sql
|
package/package.json
CHANGED
|
@@ -310,7 +310,7 @@ var LogSQLCommand = /** @class */ (function () {
|
|
|
310
310
|
r = _a.sent();
|
|
311
311
|
if (this.logToConsole !== false) {
|
|
312
312
|
d = new Date().valueOf() - start.valueOf();
|
|
313
|
-
if (d
|
|
313
|
+
if (d >= SqlDatabase.durationThreshold) {
|
|
314
314
|
duration = d / 1000;
|
|
315
315
|
if (this.logToConsole === 'oneLiner') {
|
|
316
316
|
rawSql = sql
|