File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ mod service;
1313use service:: Service ;
1414
1515
16- use std:: { sync:: { Arc , Mutex } , path:: PathBuf } ;
16+ use std:: { sync:: { Arc , Mutex } , path:: PathBuf , io :: IsTerminal } ;
1717
1818use anyhow:: { Context , Result } ;
1919
@@ -48,7 +48,7 @@ fn bootstrap() -> Result<Config> {
4848 let subscriber = tracing_subscriber:: fmt ( )
4949 . fmt_fields ( fmt)
5050 . with_env_filter ( filter)
51- . with_ansi ( atty :: is ( atty :: Stream :: Stdout ) ) ;
51+ . with_ansi ( std :: io :: stdout ( ) . is_terminal ( ) ) ;
5252
5353 if matches. get_flag ( "no-log-time" ) {
5454 subscriber. without_time ( ) . init ( ) ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ mod config;
33mod logic;
44mod utils;
55
6- use std:: path:: PathBuf ;
6+ use std:: { path:: PathBuf , io :: IsTerminal } ;
77
88use crate :: config:: Config ;
99
@@ -32,7 +32,7 @@ fn bootstrap() -> Result<Config> {
3232 let subscriber = tracing_subscriber:: fmt ( )
3333 . fmt_fields ( fmt)
3434 . with_env_filter ( filter)
35- . with_ansi ( atty :: is ( atty :: Stream :: Stdout ) ) ;
35+ . with_ansi ( std :: io :: stdout ( ) . is_terminal ( ) ) ;
3636
3737 if matches. get_flag ( "no-log-time" ) {
3838 subscriber. without_time ( ) . init ( ) ;
You can’t perform that action at this time.
0 commit comments