File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ pub enum Target {
2020    /// Logs will be sent to standard error. 
2121     Stderr , 
2222    /// Logs will be sent to a custom pipe. 
23+      #[ deprecated = "\   
24+          This functionality is [broken](https://github.com/env-logger-rs/env_logger/issues/208) \ 
25+          and nobody is working on fixing it\ 
26+      "] 
2327    Pipe ( Box < dyn  io:: Write  + Send  + ' static > ) , 
2428} 
2529
@@ -37,6 +41,7 @@ impl fmt::Debug for Target {
3741            match  self  { 
3842                Self :: Stdout  => "stdout" , 
3943                Self :: Stderr  => "stderr" , 
44+                 #[ allow( deprecated) ] 
4045                Self :: Pipe ( _)  => "pipe" , 
4146            } 
4247        ) 
@@ -60,6 +65,7 @@ impl From<Target> for WritableTarget {
6065        match  target { 
6166            Target :: Stdout  => Self :: Stdout , 
6267            Target :: Stderr  => Self :: Stderr , 
68+             #[ allow( deprecated) ]  
6369            Target :: Pipe ( pipe)  => Self :: Pipe ( Box :: new ( Mutex :: new ( pipe) ) ) , 
6470        } 
6571    } 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments