Changed console.log for logger.debug

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>