mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	spa/logger: only log in colors if we're logging to a tty
This commit is contained in:
		
							parent
							
								
									af63d08453
								
							
						
					
					
						commit
						cc4324cd30
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -280,6 +280,8 @@ impl_init(const struct spa_handle_factory *factory,
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if (this->file == NULL)
 | 
						if (this->file == NULL)
 | 
				
			||||||
		this->file = stderr;
 | 
							this->file = stderr;
 | 
				
			||||||
 | 
						if (!isatty(fileno(this->file)))
 | 
				
			||||||
 | 
							this->colors = false;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	spa_ringbuffer_init(&this->trace_rb);
 | 
						spa_ringbuffer_init(&this->trace_rb);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue