Added debug message when registering adapters
This commit is contained in:
parent
c8bb429a6e
commit
f6c78aa525
@ -547,6 +547,8 @@ const adapters = [];
|
|||||||
`Already exists`);
|
`Already exists`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
(0,_log_mjs__WEBPACK_IMPORTED_MODULE_3__.log)(`Registered adapter: ${ wrapped.name }`);
|
||||||
|
|
||||||
adapters.push(wrapped);
|
adapters.push(wrapped);
|
||||||
},
|
},
|
||||||
debug: _log_mjs__WEBPACK_IMPORTED_MODULE_3__.enableDebug,
|
debug: _log_mjs__WEBPACK_IMPORTED_MODULE_3__.enableDebug,
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,7 +1,7 @@
|
|||||||
import { Database } from "./database.mjs";
|
import { Database } from "./database.mjs";
|
||||||
import { wrapAdapter } from "./adapter_wrapper.mjs";
|
import { wrapAdapter } from "./adapter_wrapper.mjs";
|
||||||
import { PawSQLiteError } from "./pawsqlite_error.mjs";
|
import { PawSQLiteError } from "./pawsqlite_error.mjs";
|
||||||
import { enableDebug } from "./log.mjs";
|
import { enableDebug, log } from "./log.mjs";
|
||||||
|
|
||||||
|
|
||||||
const adapters = [];
|
const adapters = [];
|
||||||
@ -32,6 +32,8 @@ export default {
|
|||||||
`Already exists`);
|
`Already exists`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log(`Registered adapter: ${ wrapped.name }`);
|
||||||
|
|
||||||
adapters.push(wrapped);
|
adapters.push(wrapped);
|
||||||
},
|
},
|
||||||
debug: enableDebug,
|
debug: enableDebug,
|
||||||
|
Loading…
Reference in New Issue
Block a user