mirror of
https://github.com/umami-software/umami.git
synced 2026-02-18 03:25:40 +01:00
add log
This commit is contained in:
parent
92fc680b60
commit
d8e20f7316
1 changed files with 1 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ function getDatabaseType(url = process.env.DATABASE_URL) {
|
||||||
const databaseType = getDatabaseType();
|
const databaseType = getDatabaseType();
|
||||||
|
|
||||||
if (!databaseType || !['mysql', 'postgresql'].includes(databaseType)) {
|
if (!databaseType || !['mysql', 'postgresql'].includes(databaseType)) {
|
||||||
|
console.log(`---- DATABASE_TYPE -----> - ${databaseType}`);
|
||||||
throw new Error('Missing or invalid database');
|
throw new Error('Missing or invalid database');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue