Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit 3e75dbc

Browse files
committed
Fix consoles and flow
1 parent d6c1bf8 commit 3e75dbc

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

hyperion/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// @flow
2-
console.log('Hyperion starting...');
32
const debug = require('debug')('hyperion');
3+
debug('Hyperion starting...');
44
debug('logging with debug enabled');
55
// $FlowFixMe
66
require('isomorphic-fetch');
@@ -148,7 +148,7 @@ process.on('uncaughtException', async err => {
148148

149149
Loadable.preloadAll().then(() => {
150150
app.listen(PORT);
151-
console.log(
151+
debug(
152152
`Hyperion, the server-side renderer, running at http://localhost:${PORT}`
153153
);
154154
});

shared/graphql/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,6 @@ export const clearApolloStore = () => {
112112
try {
113113
client.resetStore();
114114
} catch (e) {
115-
console.log('error clearing store');
115+
console.error('error clearing store');
116116
}
117117
};

shared/middlewares/security.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
// @flow
12
const hpp = require('hpp');
23
const helmet = require('helmet');
34

5+
// $FlowFixMe
46
function securityMiddleware(server) {
57
// Don't expose any software information to hackers.
68
server.disable('x-powered-by');

0 commit comments

Comments
 (0)