Commit abad3e74672198c165178d834b1d0637268dce99
1 parent
6d9dc4cf
Exists in
master
and in
1 other branch
V. 0.5.4 - Modificação para inspecionar o problema de não funcionar o acesso ao …
…SQLServer na produção.
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
services/databases.js
@@ -3,6 +3,7 @@ | @@ -3,6 +3,7 @@ | ||
3 | var ms_sql = require("mssql"); | 3 | var ms_sql = require("mssql"); |
4 | var pg = require("pg"); | 4 | var pg = require("pg"); |
5 | const keys = require("../config/keys"); | 5 | const keys = require("../config/keys"); |
6 | +const util = require("util"); | ||
6 | 7 | ||
7 | // Conexão com Postgres | 8 | // Conexão com Postgres |
8 | pg.defaults.poolSize = 25; | 9 | pg.defaults.poolSize = 25; |
@@ -19,8 +20,8 @@ global.poolPg.connect(function(err, client, done){ | @@ -19,8 +20,8 @@ global.poolPg.connect(function(err, client, done){ | ||
19 | global.poolMsql = new ms_sql.ConnectionPool(keys.msql, function(err) { | 20 | global.poolMsql = new ms_sql.ConnectionPool(keys.msql, function(err) { |
20 | if (err) { | 21 | if (err) { |
21 | console.log("Não conectou com SQLServer:\n" + err); | 22 | console.log("Não conectou com SQLServer:\n" + err); |
22 | - console.error("String conexão: " + keys.msql) | 23 | + console.error("String conexão: " + util.inspect(keys.msql)); |
23 | } else{ | 24 | } else{ |
24 | - console.log("Connection estabilished with SQLServer"); | 25 | + console.log("Connection estabilished with SQLServer\n" + util.inspect(keys.msql)); |
25 | } | 26 | } |
26 | }); | 27 | }); |
27 | \ No newline at end of file | 28 | \ No newline at end of file |