Implemented node v.12 style debug logging with using NODE_DEBUG env variable