Added debug message when registering adapters

This commit is contained in:
Ben Ashton 2021-03-04 20:07:13 -08:00
parent c8bb429a6e
commit f6c78aa525
3 changed files with 6 additions and 2 deletions

View File

@ -547,6 +547,8 @@ const adapters = [];
`Already exists`);
}
(0,_log_mjs__WEBPACK_IMPORTED_MODULE_3__.log)(`Registered adapter: ${ wrapped.name }`);
adapters.push(wrapped);
},
debug: _log_mjs__WEBPACK_IMPORTED_MODULE_3__.enableDebug,

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,7 @@
import { Database } from "./database.mjs";
import { wrapAdapter } from "./adapter_wrapper.mjs";
import { PawSQLiteError } from "./pawsqlite_error.mjs";
import { enableDebug } from "./log.mjs";
import { enableDebug, log } from "./log.mjs";
const adapters = [];
@ -32,6 +32,8 @@ export default {
`Already exists`);
}
log(`Registered adapter: ${ wrapped.name }`);
adapters.push(wrapped);
},
debug: enableDebug,