MB-7478: Log inputs and outputs

Working but tests fail. Some inputs cause FPE