This repository was archived by the owner on Oct 11, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 11// @flow
2- console . log ( 'Hyperion starting...' ) ;
32const debug = require ( 'debug' ) ( 'hyperion' ) ;
3+ debug ( 'Hyperion starting...' ) ;
44debug ( 'logging with debug enabled' ) ;
55// $FlowFixMe
66require ( 'isomorphic-fetch' ) ;
@@ -148,7 +148,7 @@ process.on('uncaughtException', async err => {
148148
149149Loadable . preloadAll ( ) . then ( ( ) => {
150150 app . listen ( PORT ) ;
151- console . log (
151+ debug (
152152 `Hyperion, the server-side renderer, running at http://localhost:${ PORT } `
153153 ) ;
154154} ) ;
Original file line number Diff line number Diff 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} ;
Original file line number Diff line number Diff line change 1+ // @flow
12const hpp = require ( 'hpp' ) ;
23const helmet = require ( 'helmet' ) ;
34
5+ // $FlowFixMe
46function securityMiddleware ( server ) {
57 // Don't expose any software information to hackers.
68 server . disable ( 'x-powered-by' ) ;
You can’t perform that action at this time.
0 commit comments