issue #1: do not segfault if error_log is not def
issue #1: fix stuck into recursion