mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-22 14:30:58 -04:00
add more query log for dev env
This commit is contained in:
parent
798f39acf0
commit
eed6d3e847
5 changed files with 60 additions and 15 deletions
|
@ -29,6 +29,10 @@ class Database {
|
|||
}
|
||||
}));
|
||||
|
||||
if (process.env.SQL_LOG === "1") {
|
||||
R.debug(true);
|
||||
}
|
||||
|
||||
// Auto map the model to a bean object
|
||||
R.freeze(true)
|
||||
await R.autoloadModels("./server/model");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue