improving logging on peak detector