require debug at the top of file

This commit is contained in:
Eneko Lakasta 2018-02-28 11:42:44 +01:00
parent 8867cdbc02
commit 26df09b13f

View File

@ -1,5 +1,6 @@
var PSQL = require('cartodb-psql');
var _ = require('underscore');
const debug = require('debug')('cachechan');
function PgConnection(metadataBackend) {
this.metadataBackend = metadataBackend;
@ -141,7 +142,7 @@ PgConnection.prototype.setDBConn = function(dbowner, params, callback) {
*/
PgConnection.prototype.getConnection = function(username, callback) {
require('debug')('cachechan')("getConn1");
debug("getConn1");
this.getDatabaseParams(username, (err, databaseParams) => {
if (err) {