Refresh the log just after the toggle button is pressed