Samuel Johnson said this quote

When any fit of gloominess or perversion of mind lays hold upon you make it a rule not to publish it by complaints.