// let tries = 0;
// function connectSql() {
// sql.globalConnection.connect(config.get('db.connectionstring'))
// .then( (pool) => {
// winston.warn('connected....');
// })
// .catch((err) => {
// tries++;
// winston.error(`Error creating connection pool: at ${tries} tries`);
// setTimeout(connectSql, 5000);
// // throw err;
// });
// }
process.on('unhandledRejection', (reason, p) => {
winston.debug('Unhandled Rejection at: Promise', p, 'reason:', reason);
// application specific logging, throwing an error, or other logic here
});
// connectSql();