mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 15:34:13 +00:00 
			
		
		
		
	clarify logging when an inbox job is skipped or fails
This commit is contained in:
		
							parent
							
								
									4708c0abef
								
							
						
					
					
						commit
						3f5ea11a1f
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -218,7 +218,11 @@ export class InboxProcessorService implements OnApplicationShutdown {
 | 
			
		|||
		try {
 | 
			
		||||
			const result = await this.apInboxService.performActivity(authUser.user, activity);
 | 
			
		||||
			if (result && !result.startsWith('ok')) {
 | 
			
		||||
				this.logger.warn(`inbox activity ignored (maybe): id=${activity.id} reason=${result}`);
 | 
			
		||||
				if (result.startsWith('skip:')) {
 | 
			
		||||
					this.logger.info(`inbox activity ignored: id=${activity.id} reason=${result}`);
 | 
			
		||||
				} else {
 | 
			
		||||
					this.logger.warn(`inbox activity failed: id=${activity.id} reason=${result}`);
 | 
			
		||||
				}
 | 
			
		||||
				return result;
 | 
			
		||||
			}
 | 
			
		||||
		} catch (e) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue