From 26df09b13fa828f542dab91d0ed1a0cedf147d26 Mon Sep 17 00:00:00 2001 From: Eneko Lakasta Date: Wed, 28 Feb 2018 11:42:44 +0100 Subject: [PATCH] require debug at the top of file --- lib/cartodb/backends/pg_connection.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/cartodb/backends/pg_connection.js b/lib/cartodb/backends/pg_connection.js index d5c75a9c..f389c687 100644 --- a/lib/cartodb/backends/pg_connection.js +++ b/lib/cartodb/backends/pg_connection.js @@ -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) {