Add logging to add-key