Fix bug in logging options