[JP] Adding logging to calculation of rotation