[Server] Better debug message
This commit is contained in:
		
							parent
							
								
									cae7387c3a
								
							
						
					
					
						commit
						d898ad09a5
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -40,7 +40,7 @@ export default (endpoint: IEndpoint, ctx: IAuthContext) => new Promise((ok, reje | |||
| 				return reject('ERR'); | ||||
| 			} | ||||
| 
 | ||||
| 			log(`min remaining: ${info.remaining}`); | ||||
| 			log(`@${ctx.user.username} ${endpoint.name} min remaining: ${info.remaining}`); | ||||
| 
 | ||||
| 			if (info.remaining === 0) { | ||||
| 				reject('BRIEF_REQUEST_INTERVAL'); | ||||
|  | @ -68,7 +68,7 @@ export default (endpoint: IEndpoint, ctx: IAuthContext) => new Promise((ok, reje | |||
| 				return reject('ERR'); | ||||
| 			} | ||||
| 
 | ||||
| 			log(`max remaining: ${info.remaining}`); | ||||
| 			log(`@${ctx.user.username} ${endpoint.name} max remaining: ${info.remaining}`); | ||||
| 
 | ||||
| 			if (info.remaining === 0) { | ||||
| 				reject('RATE_LIMIT_EXCEEDED'); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue