I would prefer: if (this.debug) this.log("Op: " + msg.op, msg);