I'm actually interested in people's opinions on this. I'm only returning commands with exit status 0 or 130. Not sure if what the best approach is.
Maybe filter out repeats of anything with an exit code other than 0 or 130, but still log the command itself? Sometimes I will run a command a few times since I know we've either hit an API limit, or I'm testing incremental changes.