@@ -306,8 +306,8 @@ fn parse_spec(spec: &str) -> (Vec<Directive>, Option<inner::Filter>) {
306
306
let mods = parts. next ( ) ;
307
307
let filter = parts. next ( ) ;
308
308
if parts. next ( ) . is_some ( ) {
309
- println ! ( "warning: invalid logging spec '{}', \
310
- ignoring it (too many '/'s)", spec) ;
309
+ eprintln ! ( "warning: invalid logging spec '{}', \
310
+ ignoring it (too many '/'s)", spec) ;
311
311
return ( dirs, None ) ;
312
312
}
313
313
mods. map ( |m| { for s in m. split ( ',' ) {
@@ -327,15 +327,15 @@ fn parse_spec(spec: &str) -> (Vec<Directive>, Option<inner::Filter>) {
327
327
match part1. parse ( ) {
328
328
Ok ( num) => ( num, Some ( part0) ) ,
329
329
_ => {
330
- println ! ( "warning: invalid logging spec '{}', \
331
- ignoring it", part1) ;
330
+ eprintln ! ( "warning: invalid logging spec '{}', \
331
+ ignoring it", part1) ;
332
332
continue
333
333
}
334
334
}
335
335
} ,
336
336
_ => {
337
- println ! ( "warning: invalid logging spec '{}', \
338
- ignoring it", s) ;
337
+ eprintln ! ( "warning: invalid logging spec '{}', \
338
+ ignoring it", s) ;
339
339
continue
340
340
}
341
341
} ;
@@ -349,7 +349,7 @@ fn parse_spec(spec: &str) -> (Vec<Directive>, Option<inner::Filter>) {
349
349
match inner:: Filter :: new ( filter) {
350
350
Ok ( re) => Some ( re) ,
351
351
Err ( e) => {
352
- println ! ( "warning: invalid regex filter - {}" , e) ;
352
+ eprintln ! ( "warning: invalid regex filter - {}" , e) ;
353
353
None
354
354
}
355
355
}
0 commit comments