[FIX] Fix issue with log_handler in debug