mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Remove wlc logging stuff
This commit is contained in:
		
							parent
							
								
									39041d07b5
								
							
						
					
					
						commit
						2a799a731f
					
				
					 1 changed files with 0 additions and 13 deletions
				
			
		
							
								
								
									
										13
									
								
								sway/main.c
									
										
									
									
									
								
							
							
						
						
									
										13
									
								
								sway/main.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -38,12 +38,6 @@ int main(int argc, char **argv) {
 | 
			
		|||
 | 
			
		||||
	setenv("WLC_DIM", "0", 0);
 | 
			
		||||
 | 
			
		||||
	FILE *devnull = fopen("/dev/null", "w");
 | 
			
		||||
	if (devnull) {
 | 
			
		||||
		// NOTE: Does not work, see wlc issue #54
 | 
			
		||||
		wlc_set_log_file(devnull);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/* Changing code earlier than this point requires detailed review */
 | 
			
		||||
	if (!wlc_init(&interface, argc, argv)) {
 | 
			
		||||
		return 1;
 | 
			
		||||
| 
						 | 
				
			
			@ -85,9 +79,6 @@ int main(int argc, char **argv) {
 | 
			
		|||
 | 
			
		||||
	if (debug) {
 | 
			
		||||
		init_log(L_DEBUG);
 | 
			
		||||
		wlc_set_log_file(stderr);
 | 
			
		||||
		fclose(devnull);
 | 
			
		||||
		devnull = NULL;
 | 
			
		||||
	} else if (verbose || validate) {
 | 
			
		||||
		init_log(L_INFO);
 | 
			
		||||
	} else {
 | 
			
		||||
| 
						 | 
				
			
			@ -114,10 +105,6 @@ int main(int argc, char **argv) {
 | 
			
		|||
		wlc_run();
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (devnull) {
 | 
			
		||||
		fclose(devnull);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	ipc_terminate();
 | 
			
		||||
 | 
			
		||||
	return 0;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue