From b33fd8d6044a73b1399bb8fba4c11a7eb9137208 Mon Sep 17 00:00:00 2001
From: Dragory <2606411+Dragory@users.noreply.github.com>
Date: Sun, 12 Sep 2021 21:47:03 +0300
Subject: [PATCH] Add slow query logging

---
 backend/ormconfig.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/backend/ormconfig.js b/backend/ormconfig.js
index 161346a4..7c9bb5b4 100644
--- a/backend/ormconfig.js
+++ b/backend/ormconfig.js
@@ -33,6 +33,9 @@ module.exports = {
   synchronize: false,
   connectTimeout: 2000,
 
+  logging: ["error", "warn"],
+  maxQueryExecutionTime: 100,
+
   // Entities
   entities: [entities],