mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #2354 from overleaf/em-disallow-console
Disallow console.log in backend code GitOrigin-RevId: 53ff1f2f2585d05a0f2380336227c50524aee08c
This commit is contained in:
committed by
sharelatex
parent
41d4fabc78
commit
41d77889da
@@ -87,7 +87,7 @@
|
||||
},
|
||||
{
|
||||
// Backend specific rules
|
||||
"files": ["**/app/*/src/**/*.js"],
|
||||
"files": ["**/app/src/**/*.js"],
|
||||
"rules": {
|
||||
// don't allow console.log in backend code
|
||||
"no-console": "error"
|
||||
|
||||
@@ -152,7 +152,6 @@ module.exports = {
|
||||
}
|
||||
makeAnalyticsRequest(userId, opts, function(err, response, body) {
|
||||
if (err != null) {
|
||||
console.log(response, opts)
|
||||
logger.warn({ userId, err }, 'error getting last occurance of event')
|
||||
callback(err)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user