change place of _log_debug to avoid uninitialized value

Signed-off-by: Thiago Rondon <thiago.rondon@gmail.com>