Skip to content

Commit

Permalink
Merge pull request #417 from OpenHausIO/revert-416-dev
Browse files Browse the repository at this point in the history
Revert "Switched to husky & removed `console.log`"
  • Loading branch information
mStirner authored Jan 16, 2024
2 parents cd8f231 + 702a008 commit 331ca52
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 33 deletions.
5 changes: 0 additions & 5 deletions .husky/pre-commit

This file was deleted.

22 changes: 0 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"release": "grunt release",
"db:export": "mongodump --db OpenHaus --archive=./demo-database.gz",
"db:import": "mongorestore --db OpenHaus --archive=./demo-database.gz",
"publish": "grunt publish",
"prepare": "husky install"
"postinstall": "scripts/post-install.sh",
"publish": "grunt publish"
},
"engines": {
"node": ">=0.16.0"
Expand Down Expand Up @@ -55,7 +55,6 @@
"mocha.parallel": "^0.15.6",
"newman": "^6.0.0",
"nodemon": "^3.0.1",
"sinon": "^14.0.2",
"husky": "^8.0.0"
"sinon": "^14.0.2"
}
}
}
2 changes: 1 addition & 1 deletion routes/auth-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ module.exports = (C_USERS, router) => {
return;
}

//console.log("User request:", req.user, req.authenticated, process.env.API_AUTH_ENABLED, req.ip, req.socket.remoteAddress, req.method, req.url, req.headers);
console.log("User request:", req.user, req.authenticated, process.env.API_AUTH_ENABLED, req.ip, req.socket.remoteAddress, req.method, req.url, req.headers);

next();

Expand Down

0 comments on commit 331ca52

Please sign in to comment.