File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -32,16 +32,21 @@ fn main() {
3232
3333 let mut chain = Chain :: new ( mount) ;
3434
35- // Temporary fix - Iron's logger middleware does not work on Windows
36- #[ cfg( not( windows) ) ] setup_logger ( & mut chain) ;
35+ setup_logger ( & mut chain) ;
3736
3837 let host = env:: var ( "LISTEN" ) . unwrap_or ( "0.0.0.0:8080" . to_owned ( ) ) ;
3938 println ! ( "GraphQL server started on {}" , host) ;
4039 Iron :: new ( chain) . http ( host. as_str ( ) ) . unwrap ( ) ;
4140}
4241
42+ // Temporary fix - Iron's logger middleware does not work on Windows
43+ #[ cfg( not( windows) ) ]
4344fn setup_logger ( chain : & mut Chain ) {
4445 let ( logger_before, logger_after) = Logger :: new ( None ) ;
4546 chain. link_before ( logger_before) ;
4647 chain. link_after ( logger_after) ;
4748}
49+
50+ #[ cfg( windows) ]
51+ fn setup_logger ( _: & mut Chain ) {
52+ }
You can’t perform that action at this time.
0 commit comments