Adds support for --verbose and verbose option when running ParseServer (#1414)

This commit is contained in:
Florent Vilmart
2016-04-07 18:07:52 -04:00
parent 616ac71623
commit cedac3fda6
4 changed files with 13 additions and 14 deletions

View File

@@ -115,6 +115,7 @@ class ParseServer {
},
liveQuery = {},
sessionLength = 31536000, // 1 Year in seconds
verbose = false,
}) {
// Initialize the node client SDK automatically
Parse.initialize(appId, javascriptKey || 'unused', masterKey);
@@ -149,6 +150,9 @@ class ParseServer {
}
}
if (verbose || process.env.VERBOSE || process.env.VERBOSE_PARSE_SERVER) {
configureLogger({level: 'silly'});
}
const filesControllerAdapter = loadAdapter(filesAdapter, () => {
return new GridStoreAdapter(databaseURI);