Fix removal of logging on release
This commit is contained in:
		
							parent
							
								
									9f5042dbd3
								
							
						
					
					
						commit
						375cb1a243
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -13,6 +13,7 @@ const configPath {.strdefine.} = "./nitter.conf"
 | 
			
		|||
let (cfg, fullCfg) = getConfig(configPath)
 | 
			
		||||
 | 
			
		||||
when defined(release):
 | 
			
		||||
  import logging
 | 
			
		||||
  # Silence Jester's query warning
 | 
			
		||||
  addHandler(newConsoleLogger())
 | 
			
		||||
  setLogFilter(lvlError)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue