Move logger initialization out of IF block so that logger is initialized even if rester() is called with no arguments.
console.debug() does not exist in current versions of node.js (did it ever?).