Use log.info instead of console.log to print tree