Revert "Make rabbit_log:log/2 return 'ok' unconditionally"
This reverts commit 01c4ca2aa9.
			
			
This commit is contained in:
		
							parent
							
								
									01c4ca2aa9
								
							
						
					
					
						commit
						fd86959429
					
				|  | @ -74,8 +74,7 @@ log(Category, Level, Fmt, Args) when is_list(Args) -> | ||||||
|         default -> ?LAGER_SINK; |         default -> ?LAGER_SINK; | ||||||
|         _       -> make_internal_sink_name(Category) |         _       -> make_internal_sink_name(Category) | ||||||
|     end, |     end, | ||||||
|     lager:log(Sink, Level, self(), Fmt, Args), |     lager:log(Sink, Level, self(), Fmt, Args). | ||||||
|     ok. |  | ||||||
| 
 | 
 | ||||||
| %% logger(3) handler. | %% logger(3) handler. | ||||||
| log(#{level := Level, | log(#{level := Level, | ||||||
|  | @ -101,8 +100,7 @@ log(#{level := Level, | ||||||
|             lager:log(?LAGER_SINK, Level, Pid, "~ts", [String]); |             lager:log(?LAGER_SINK, Level, Pid, "~ts", [String]); | ||||||
|         {Format, Args} when is_list(Format) -> |         {Format, Args} when is_list(Format) -> | ||||||
|             lager:log(?LAGER_SINK, Level, Pid, Format, Args) |             lager:log(?LAGER_SINK, Level, Pid, Format, Args) | ||||||
|     end, |     end. | ||||||
|     ok. |  | ||||||
| 
 | 
 | ||||||
| make_internal_sink_name(channel)    -> rabbit_log_channel_lager_event; | make_internal_sink_name(channel)    -> rabbit_log_channel_lager_event; | ||||||
| make_internal_sink_name(connection) -> rabbit_log_connection_lager_event; | make_internal_sink_name(connection) -> rabbit_log_connection_lager_event; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue