aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/installer.ts2
-rw-r--r--server/initializers/migrator.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/initializers/installer.ts b/server/initializers/installer.ts
index 324a2c2e5..d2f6c7c8c 100644
--- a/server/initializers/installer.ts
+++ b/server/initializers/installer.ts
@@ -19,7 +19,7 @@ async function installApplication () {
19 await createOAuthClientIfNotExist() 19 await createOAuthClientIfNotExist()
20 await createOAuthAdminIfNotExist() 20 await createOAuthAdminIfNotExist()
21 } catch (err) { 21 } catch (err) {
22 logger.error('Cannot install application.', err) 22 logger.error('Cannot install application.', { err })
23 process.exit(-1) 23 process.exit(-1)
24 } 24 }
25} 25}
diff --git a/server/initializers/migrator.ts b/server/initializers/migrator.ts
index c767acc83..466369729 100644
--- a/server/initializers/migrator.ts
+++ b/server/initializers/migrator.ts
@@ -35,7 +35,7 @@ async function migrate () {
35 try { 35 try {
36 await executeMigration(actualVersion, migrationScript) 36 await executeMigration(actualVersion, migrationScript)
37 } catch (err) { 37 } catch (err) {
38 logger.error('Cannot execute migration %s.', migrationScript.version, err) 38 logger.error('Cannot execute migration %s.', migrationScript.version, { err })
39 process.exit(-1) 39 process.exit(-1)
40 } 40 }
41 } 41 }