@@ -9,6 +9,25 @@ const path = require('path')
99const templateUtils = require ( './common/template-utils' )
1010const fsUtils = require ( './common/fs-utils' )
1111
12+ const debug = require ( './debug' )
13+
14+ function printDebugInfo ( options ) {
15+ debug . settings ( 'Server URI: ' + options . serverUri )
16+ debug . settings ( 'Auth method: ' + options . auth )
17+ debug . settings ( 'Strict origins: ' + options . strictOrigin )
18+ debug . settings ( 'Allowed origins: ' + options . trustedOrigins )
19+ debug . settings ( 'Db path: ' + options . dbPath )
20+ debug . settings ( 'Config path: ' + options . configPath )
21+ debug . settings ( 'Suffix Acl: ' + options . suffixAcl )
22+ debug . settings ( 'Suffix Meta: ' + options . suffixMeta )
23+ debug . settings ( 'Filesystem Root: ' + ( this . resourceMapper ? this . resourceMapper . rootPath : 'none' ) )
24+ debug . settings ( 'Allow WebID authentication: ' + ! ! options . webid )
25+ debug . settings ( 'Live-updates: ' + ! ! options . live )
26+ debug . settings ( 'Multi-user: ' + ! ! options . multiuser )
27+ debug . settings ( 'Suppress default data browser app: ' + options . suppressDataBrowser )
28+ debug . settings ( 'Default data browser app file path: ' + options . dataBrowserPath )
29+ }
30+
1231/**
1332 * Ensures that a directory has been copied / initialized. Used to ensure that
1433 * account templates, email templates and default apps have been copied from
@@ -144,5 +163,6 @@ module.exports = {
144163 ensureWelcomePage,
145164 initConfigDir,
146165 initDefaultViews,
147- initTemplateDirs
166+ initTemplateDirs,
167+ printDebugInfo
148168}
0 commit comments