mythix 1.0.1 → 1.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mythix",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Mythix is a NodeJS web-app framework",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -787,7 +787,7 @@ class Application extends EventEmitter {
787
787
  return sequelize;
788
788
  } catch (error) {
789
789
  this.getLogger().error(`Unable to connect to database ${dbConnectionString}:`, error);
790
- await this.stop();
790
+ throw error;
791
791
  }
792
792
  }
793
793
 
@@ -818,7 +818,7 @@ class Application extends EventEmitter {
818
818
  return;
819
819
  }
820
820
 
821
- databaseConfig.logging = this.getLogger().isDebugLevel();
821
+ databaseConfig.logging = (this.getLogger().isDebugLevel()) ? this.getLogger().log.bind(this.getLogger()) : false;
822
822
 
823
823
  if (Nife.isEmpty(databaseConfig.tablePrefix))
824
824
  databaseConfig.tablePrefix = `${this.getApplicationName()}_`;