Add build log to payload

Could `return log;` here, so there would not need to be an extra case in the switch statement.