2021-03-01 18:47:07 -08:00
|
|
|
let DEBUG = false;
|
|
|
|
|
|
|
|
export function log(...args) {
|
|
|
|
if (DEBUG) {
|
|
|
|
console.log(...args);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export function enableDebug(active) {
|
|
|
|
DEBUG = !!active;
|
|
|
|
log("PawSQLite: debugging " + (DEBUG ? "enabled" : "disabled"));
|
2021-03-02 01:19:01 -08:00
|
|
|
|
|
|
|
if (DEBUG) {
|
|
|
|
log("You might also want to enable debugging for the adapter that you " +
|
|
|
|
"are using");
|
|
|
|
}
|
2021-03-01 18:47:07 -08:00
|
|
|
}
|