[erlang-questions] error_logger & DST

Bogdan Andu bog495@REDACTED
Mon Oct 31 13:58:43 CET 2016


Hi list,

Every time a summer to winter or winter to summer shift happens I have 
errors in logs this:

=ERROR REPORT==== 30-Oct-2016::03:00:00 ===
** gen_event handler {file_appender,xppd} crashed.
** Was installed in default_logger
** Last event was: {log,{log,info,
                             <<"<0.26353.547> 127.0.0.1 abx.xyz 
ABCDEF-1477785600.4033">>,
                             [],
                             {{2016,10,30},{3,0,0}},
                             418013}}
** When handler state == {file_appender,"/var/xpp/logs","access",
                             
{file_descriptor,prim_file,{#Port<0.5685945>,19}},
                             0,
                             {log_type,size,100000,undefined},
                             5,"log",info,
                             [91,level,93,32,iso_format,32,log,new_line]}
** Reason == {{badmatch,[{{2016,10,30},{0,0,0}},{{2016,10,30},{1,0,0}}]},
              [{log_formatter,get_token_value,2,[]},
               {lists,map,2,[{file,"lists.erl"},{line,1237}]},
               {lists,map,2,[{file,"lists.erl"},{line,1237}]},
               {file_appender,do_log,2,[]},
               {file_appender,handle_event,2,[]},
               
{gen_event,server_update,4,[{file,"gen_event.erl"},{line,525}]},
               
{gen_event,server_notify,4,[{file,"gen_event.erl"},{line,507}]},
               {gen_event,server_notify,4,
                          [{file,"gen_event.erl"},{line,509}]}]}

=ERROR REPORT==== 30-Oct-2016::03:00:00 ===
** Generic server <0.85.0> terminating 
** Last message in was {gen_event_EXIT,
                           {file_appender,xppd},
                           {'EXIT',
                               {{badmatch,
                                    [{{2016,10,30},{0,0,0}},
                                     {{2016,10,30},{1,0,0}}]},
                                [{log_formatter,get_token_value,2,[]},
                                 {lists,map,2,
                                     [{file,"lists.erl"},{line,1237}]},
                                 {lists,map,2,
                                     [{file,"lists.erl"},{line,1237}]},
                                 {file_appender,do_log,2,[]},
                                 {file_appender,handle_event,2,[]},
                                 {gen_event,server_update,4,
                                     [{file,"gen_event.erl"},{line,525}]},
                                 {gen_event,server_notify,4,
                                     [{file,"gen_event.erl"},{line,507}]},
                                 {gen_event,server_notify,4,
                                     
[{file,"gen_event.erl"},{line,509}]}]}}}
** When Server state == [{appender,file_appender,xppd}]
** Reason for termination == 
** {appender_died,
       {'EXIT',
           {{badmatch,[{{2016,10,30},{0,0,0}},{{2016,10,30},{1,0,0}}]},
            [{log_formatter,get_token_value,2,[]},
             {lists,map,2,[{file,"lists.erl"},{line,1237}]},
             {lists,map,2,[{file,"lists.erl"},{line,1237}]},
             {file_appender,do_log,2,[]},
             {file_appender,handle_event,2,[]},
             
{gen_event,server_update,4,[{file,"gen_event.erl"},{line,525}]},
             
{gen_event,server_notify,4,[{file,"gen_event.erl"},{line,507}]},
             {gen_event,server_notify,4,
                 [{file,"gen_event.erl"},{line,509}]}]}}}


It  looks like error_logger does not knows how to handle daylight saving 
times.

The error occurs precisely in the moment when the hour is going back or 
forth.
After this, error_logger resumes .


/Bogdan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20161031/30b5cf6c/attachment.htm>


More information about the erlang-questions mailing list