mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-11-04 05:15:22 +00:00 
			
		
		
		
	add a little comment to keep someone else from having the same misunderstanding I had :-)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5748 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		
							
								
								
									
										6
									
								
								logger.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								logger.c
									
									
									
									
									
								
							@@ -671,9 +671,15 @@ void ast_log(int level, const char *file, int line, const char *function, const
 | 
			
		||||
 | 
			
		||||
	va_list ap;
 | 
			
		||||
	
 | 
			
		||||
	/* skip this message unless:
 | 
			
		||||
	   - option_verbose is greater than zero _or_
 | 
			
		||||
	   - option_debug is greater than zero _or_
 | 
			
		||||
	   - the message is of level LOG_DEBUG (which allows for 'level zero' LOG_DEBUG messages)
 | 
			
		||||
	 */
 | 
			
		||||
	if (!option_verbose && !option_debug && (level == __LOG_DEBUG)) {
 | 
			
		||||
		return;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/* Ignore anything that never gets logged anywhere */
 | 
			
		||||
	if (!(global_logmask & (1 << level)))
 | 
			
		||||
		return;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user