log metadata as well as saving it to a git note