Export of internal Abseil changes.
-- 50154b443b21a5123c50bebcfb866581e2e5b907 by Xiaoyi Zhang <zhangxy@google.com>: Import https://github.com/abseil/abseil-cpp/pull/144 PiperOrigin-RevId: 204482647 -- ffefb7e0f9861a24296e672a5e32bbb56051239a by Abseil Team <absl-team@google.com>: Cast ABSL_MIN_LOG_LEVEL to absl::LogSeverity rather than casting severity to int. This allows it to be defined symbolically e.g. -DABSL_MIN_LOG_LEVEL=absl::LogSeverity::kError. PiperOrigin-RevId: 204347589 GitOrigin-RevId: 50154b443b21a5123c50bebcfb866581e2e5b907 Change-Id: I728baa8a3ad11ca28b731cc7979238c163e9c9a4
This commit is contained in:
		
							parent
							
								
									a5030ca512
								
							
						
					
					
						commit
						7b50a4a94b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -139,7 +139,7 @@ void RawLogVA(absl::LogSeverity severity, const char* file, int line,
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef ABSL_MIN_LOG_LEVEL
 | 
					#ifdef ABSL_MIN_LOG_LEVEL
 | 
				
			||||||
  if (static_cast<int>(severity) < ABSL_MIN_LOG_LEVEL &&
 | 
					  if (severity < static_cast<absl::LogSeverity>(ABSL_MIN_LOG_LEVEL) &&
 | 
				
			||||||
      severity < absl::LogSeverity::kFatal) {
 | 
					      severity < absl::LogSeverity::kFatal) {
 | 
				
			||||||
    enabled = false;
 | 
					    enabled = false;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue