Explorar o código

add logger.debug

Shun Miyazawa %!s(int64=2) %!d(string=hai) anos
pai
achega
d42b0fa476
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      apps/app/src/server/crowi/index.js

+ 3 - 1
apps/app/src/server/crowi/index.js

@@ -438,10 +438,12 @@ Crowi.prototype.autoInstall = function() {
   const installerService = new InstallerService(this);
   const installerService = new InstallerService(this);
 
 
   try {
   try {
-    installerService.install(firstAdminUserToSave, globalLang ?? 'en_US', {
+    const createdUser = installerService.install(firstAdminUserToSave, globalLang ?? 'en_US', {
       allowGuestMode,
       allowGuestMode,
       serverDate,
       serverDate,
     });
     });
+
+    logger.debug('createdUser', createdUser);
   }
   }
   catch (err) {
   catch (err) {
     logger.warn('Automatic installation failed.', err);
     logger.warn('Automatic installation failed.', err);