Better logging with winston
This commit is contained in:
@@ -1,8 +1,17 @@
|
||||
import winston from 'winston';
|
||||
import ParseServer from './ParseServer';
|
||||
import { GCSAdapter } from 'parse-server-gcs-adapter';
|
||||
import { S3Adapter } from 'parse-server-s3-adapter';
|
||||
import { FileSystemAdapter } from 'parse-server-fs-adapter';
|
||||
|
||||
if (process.env.VERBOSE || process.env.VERBOSE_PARSE_SERVER) {
|
||||
winston.level = 'silly';
|
||||
}
|
||||
|
||||
if (process.env.DEBUG || process.env.DEBUG_PARSE_SERVER) {
|
||||
winston.level = 'debug';
|
||||
}
|
||||
|
||||
// Factory function
|
||||
let _ParseServer = function(options) {
|
||||
let server = new ParseServer(options);
|
||||
|
||||
Reference in New Issue
Block a user