Revert "Revert "Only log temp when it is getting closer to Dynamic EDP limit to""

This reverts commit 14a0b0f2a50f58b916006722eb395de741e55c3d.