Add logging support to pups

Currently, pups doesn't do any logging, it should be at least doing some error logging to make the admin's life easier.