[Reviewer: Alex] Add commit

Alex, can you review this change to use the new commit function?

This needs the corresponding cpp-common update before it can be merged - [cpp-common #122] (https://github.com/Metaswitch/cpp-common/pull/122)
Explain why this is important (the core file we are about to write will trigger the log files to be copied to the diags bundle).