Skip to content

Commit

Permalink
remove logging with debug
Browse files Browse the repository at this point in the history
  • Loading branch information
stanbar committed Dec 14, 2022
1 parent 3e2e3bc commit 660d874
Show file tree
Hide file tree
Showing 15 changed files with 13,515 additions and 163 deletions.
1 change: 0 additions & 1 deletion emails-auth/package-lock.json

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

1 change: 0 additions & 1 deletion emails-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"@sendgrid/mail": "^7.7.0",
"cookie-parser": "~1.4.6",
"cors": "^2.8.5",
"debug": "~2.6.9",
"dotenv": "^8.2.0",
"errorhandler": "^1.5.1",
"express": "~4.17.3",
Expand Down
4 changes: 1 addition & 3 deletions emails-auth/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ const httpPort = Number(PORT);
*/


const debug = require('debug')('stellar-voting:server');

/**
* Get port from environment and store in Express.
*/
Expand Down Expand Up @@ -74,6 +72,6 @@ function onListening(server: http.Server): () => void {
return () => {
const addr = server.address();
if (!addr) throw Error('address is null');
debug(`Listening on ${JSON.stringify(addr, null)}`);
console.log(`Listening on ${JSON.stringify(addr, null)}`);
};
}
Loading

0 comments on commit 660d874

Please sign in to comment.