From 911cf6c389b0965379b8d632b6eaa83b3369a559 Mon Sep 17 00:00:00 2001 From: Javier De La Fuente Sales <123395506+javierdelafuentesales@users.noreply.github.com> Date: Wed, 21 Feb 2024 17:01:46 +0100 Subject: [PATCH] Revert "chore: added logs to debug the query method" (#13) * Revert "chore: added logs to debug the query method (#12)" This reverts commit 2d67b5d42d2c08b19c9ef97f9fc96baffbee51c1. * fix: updated version --- package-lock.json | 2 +- package.json | 2 +- src/driver/spanner/SpannerQueryRunner.ts | 31 ------------------------ 3 files changed, 2 insertions(+), 33 deletions(-) diff --git a/package-lock.json b/package-lock.json index c2986d9d0f..eb5e480b1f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@streamyard/typeorm", - "version": "0.3.16-4-beta", + "version": "0.3.16-4", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index 18e1832944..6ee4f5d138 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@streamyard/typeorm", "private": true, - "version": "0.3.16-4-beta", + "version": "0.3.16-4", "description": "Data-Mapper ORM for TypeScript, ES7, ES6, ES5. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, MongoDB, Spanner databases.", "license": "MIT", "readmeFilename": "README.md", diff --git a/src/driver/spanner/SpannerQueryRunner.ts b/src/driver/spanner/SpannerQueryRunner.ts index 9b5862cb2b..183782a887 100644 --- a/src/driver/spanner/SpannerQueryRunner.ts +++ b/src/driver/spanner/SpannerQueryRunner.ts @@ -156,11 +156,6 @@ export class SpannerQueryRunner extends BaseQueryRunner implements QueryRunner { if (this.isReleased) throw new QueryRunnerAlreadyReleasedError() try { - this.driver.connection.logger.log( - "info", - "typeorm:query - start", - this, - ) const queryStartTime = +new Date() await this.connect() let rawResult: @@ -187,11 +182,6 @@ export class SpannerQueryRunner extends BaseQueryRunner implements QueryRunner { try { this.driver.connection.logger.logQuery(query, parameters, this) - this.driver.connection.logger.log( - "info", - "typeorm:query - before run", - this, - ) rawResult = await executor.run({ sql: query, params: parameters @@ -202,18 +192,7 @@ export class SpannerQueryRunner extends BaseQueryRunner implements QueryRunner { : undefined, json: true, }) - - this.driver.connection.logger.log( - "info", - "typeorm:query - after run", - this, - ) if (!this.isTransactionActive && !isSelect) { - this.driver.connection.logger.log( - "info", - "typeorm:query -commit", - this, - ) await this.sessionTransaction.commit() } } catch (error) { @@ -241,11 +220,6 @@ export class SpannerQueryRunner extends BaseQueryRunner implements QueryRunner { this, ) - this.driver.connection.logger.log( - "info", - "typeorm:query - preparing result", - this, - ) const result = new QueryResult() result.raw = rawResult @@ -258,11 +232,6 @@ export class SpannerQueryRunner extends BaseQueryRunner implements QueryRunner { return result.records } - this.driver.connection.logger.log( - "info", - "typeorm:query - end", - this, - ) return result } catch (err) { this.driver.connection.logger.logQueryError(