Skip to content

Commit 6db9cc4

Browse files
committed
add more logs
1 parent f9779ac commit 6db9cc4

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/db.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,8 @@ function impSystem(importedSystem) {
411411
exports._Behavior.insert(importedSystem.behaviors[behaviorId]);
412412
}
413413

414+
$log.initDb();
415+
414416
// add components
415417
for (collectionName in importedSystem.components) {
416418
for (componentId in importedSystem.components[collectionName]) {

src/log.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -987,6 +987,14 @@ exports.createClass = function createClass(name) {
987987
getLogger().debug(name + " class has been created");
988988
};
989989

990+
/**
991+
* @method initDb
992+
* @description Init the database
993+
*/
994+
exports.initDb = function initDb() {
995+
getLogger().debug("initializing data store...");
996+
};
997+
990998
/**
991999
* @method actionInvokeError
9921000
* @param {String} state state

0 commit comments

Comments
 (0)