@@ -67,9 +67,6 @@ defmodule Logger do
6767 cause the message to be ignored. Keep in mind that each backend
6868 may have its specific level, too.
6969
70- * `:timeout` - the timeout for sync requests in miliseconds, defaults
71- to 5000 miliseconds.
72-
7370 * `:utc_log` - when `true`, uses UTC in logs. By default it uses
7471 local time (i.e. it defaults to `false`).
7572
@@ -369,16 +366,16 @@ defmodule Logger do
369366 or you want to explicitly avoid embedding metadata.
370367 """
371368 @ spec log ( level , message | ( ( ) -> message ) , Keyword . t ) ::
372- :ok | { :error , :noproc } | { :error , :timeout } | { :error , term }
369+ :ok | { :error , :noproc } | { :error , term }
373370 def log ( level , chardata , metadata \\ [ ] ) when level in @ levels and is_list ( metadata ) do
374- % { mode: mode , truncate: truncate , timeout: timeout ,
371+ % { mode: mode , truncate: truncate ,
375372 level: min_level , utc_log: utc_log? } = Logger.Config . __data__
376373
377374 if compare_levels ( level , min_level ) != :lt do
378375 tuple = { Logger , truncate ( chardata , truncate ) , Logger.Utils . timestamp ( utc_log? ) ,
379376 [ pid: self ( ) ] ++ metadata ( ) ++ metadata }
380377 try do
381- notify ( mode , { level , Process . group_leader ( ) , tuple } , timeout )
378+ notify ( mode , { level , Process . group_leader ( ) , tuple } )
382379 :ok
383380 rescue
384381 ArgumentError -> { :error , :noproc }
@@ -462,6 +459,6 @@ defmodule Logger do
462459 defp truncate ( data , n ) ,
463460 do: Logger.Utils . truncate ( to_string ( data ) , n )
464461
465- defp notify ( :sync , msg , timeout ) , do: GenEvent . sync_notify ( Logger , msg , timeout )
466- defp notify ( :async , msg , _timeout ) , do: GenEvent . notify ( Logger , msg )
462+ defp notify ( :sync , msg ) , do: GenEvent . sync_notify ( Logger , msg )
463+ defp notify ( :async , msg ) , do: GenEvent . notify ( Logger , msg )
467464end
0 commit comments