@ccci/micro-server 1.0.36 → 1.0.37

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -87593,7 +87593,13 @@ class DatabaseConnector {
87593
87593
  return DatabaseConnector.connection;
87594
87594
  }
87595
87595
  async connect(connection) {
87596
- connection.authenticate();
87596
+ try {
87597
+ Logger.info("Connecting to: ", connection);
87598
+ connection.authenticate();
87599
+ Logger.info("Connection to Database: Success!");
87600
+ } catch (error) {
87601
+ Logger.error(new Error("Connection to Database: ERROR!"));
87602
+ }
87597
87603
  }
87598
87604
  static getModel(modelName) {
87599
87605
  return DatabaseConnector.connection.models[modelName];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccci/micro-server",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",