diff --git a/Server/utilities/mysqlHandler.js b/Server/utilities/mysqlHandler.js index b0dcfba..9be27ed 100644 --- a/Server/utilities/mysqlHandler.js +++ b/Server/utilities/mysqlHandler.js @@ -352,12 +352,12 @@ exports.getAllConnections = async (callback = undefined) => { // Function to run and handle SQL errors function runSQL(sqlQuery, callback = undefined, error = (err) => { - console.log(err); + log.ERROR(err); throw err; }) { connection.query(sqlQuery, (err, rows) => { if (err) return error(err); - //console.log('The rows are:', rows); + log.VERBOSE('Response for query: ', sqlQuery, rows); return (callback) ? callback(rows) : rows }) }