Skip to content

Commit 2fffbdc

Browse files
Print to console from parameter (#43)
* MO-821 added the option to print log to console with flag * added the flag to the logger
1 parent 2177e41 commit 2fffbdc

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.gitignore

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
.DS_Store
22
.idea
3-
*.iml
4-
node_modules
3+
/.vscode/
4+
55
build
6-
*.log*
6+
node_modules
77
npm-debug.log
8+
9+
*.iml
10+
*.log*
811
.history
912

1013
# Elastic Beanstalk Files
1114
.elasticbeanstalk/*
1215
!.elasticbeanstalk/*.cfg.yml
1316
!.elasticbeanstalk/*.global.yml
1417
.env
18+

logger/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const logger = new Rollbar({
2626
},
2727
});
2828

29-
if ('development' === process.env.NODE_ENV) {
29+
if ('development' === process.env.NODE_ENV || 'true' === process.env.PRINT_LOGS_CONSOLE) {
3030
logger.configure({verbose: true});
3131
}
3232

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"async": "^3.2.0",
1010
"body-parser": "~1.19.0",
1111
"bytes": "^3.1.0",
12-
"cloudinary": "^1.28.1",
12+
"cloudinary": "https://github.com/cloudinary/cloudinary_npm.git#analyze_api_legacy",
1313
"config": "^3.3.6",
1414
"cookie-parser": "~1.4.5",
1515
"debug": "~4.3.1",

0 commit comments

Comments
 (0)