From 977fc2683d7f0d44e68cf042ca126898adf4cb6a Mon Sep 17 00:00:00 2001 From: cuyl Date: Fri, 23 Jun 2017 14:52:22 +0800 Subject: [PATCH] fix: error log --- lib/oracle.js | 2 +- package.json | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/oracle.js b/lib/oracle.js index 0a5d952..222cda9 100644 --- a/lib/oracle.js +++ b/lib/oracle.js @@ -41,7 +41,7 @@ class OracleDB { try { return await this.connection.execute(sql, bindParams, options); } catch (err) { - this.log(err.message); + this.log.error(err.message); this.getConnection(); } } diff --git a/package.json b/package.json index 023514f..ffa31b9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "egg-oracle", - "version": "1.0.2", + "version": "1.0.3", "description": "Oracle database plugin for egg", "eggPlugin": { "name": "oracle" @@ -17,10 +17,10 @@ }, "devDependencies": { "autod": "^2.8.0", - "egg": "^1.4.0", - "egg-bin": "^3.6.0", - "egg-ci": "^1.7.0", - "egg-mock": "^3.7.2", + "egg": "^1.5.0", + "egg-bin": "^4.0.4", + "egg-ci": "^1.8.0", + "egg-mock": "^3.8.0", "eslint": "^4.0.0", "eslint-config-egg": "^4.2.1", "supertest": "^3.0.0",