Supress log when test
This commit is contained in:
		
							parent
							
								
									82f1fc6cda
								
							
						
					
					
						commit
						67dacb7725
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -26,7 +26,7 @@ import User from '../models/user';
 | 
			
		|||
const app = new Koa();
 | 
			
		||||
app.proxy = true;
 | 
			
		||||
 | 
			
		||||
if (process.env.NODE_ENV != 'production') {
 | 
			
		||||
if (process.env.NODE_ENV != 'production' && process.env.NODE_ENV != 'test') {
 | 
			
		||||
	// Logger
 | 
			
		||||
	app.use(logger());
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue