added logging of operating mode to debug log at startup