@ccci/micro-server 1.0.44 → 1.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -87526,7 +87526,7 @@ var logger = import_winston.default.createLogger({
|
|
|
87526
87526
|
if (typeof info.message === "object") {
|
|
87527
87527
|
info.message = JSON.stringify(info.message, null, 3);
|
|
87528
87528
|
}
|
|
87529
|
-
return
|
|
87529
|
+
return `[${info.level}]${info.timestamp}: ${info.message}`;
|
|
87530
87530
|
})),
|
|
87531
87531
|
transports: [new import_winston.default.transports.Console]
|
|
87532
87532
|
});
|
|
@@ -87566,13 +87566,14 @@ class DatabaseConnector {
|
|
|
87566
87566
|
import(configPath).then((configs) => {
|
|
87567
87567
|
const config = configs.default[env];
|
|
87568
87568
|
const connection = new Sequelize(config);
|
|
87569
|
+
Logger.info("Connecting to:", config);
|
|
87569
87570
|
DatabaseConnector.connection = connection;
|
|
87570
|
-
Logger.info("Connecting to:", connection);
|
|
87571
87571
|
connections.push(connection);
|
|
87572
|
-
Logger.info("Connecting to database:"
|
|
87572
|
+
Logger.info("Connecting to database: SUCCESS!");
|
|
87573
87573
|
resolve(connections);
|
|
87574
87574
|
});
|
|
87575
87575
|
} catch (error) {
|
|
87576
|
+
Logger.error(new Error("Connecting to database: ERROR!"));
|
|
87576
87577
|
Logger.error(error);
|
|
87577
87578
|
reject(connections);
|
|
87578
87579
|
}
|