fixing constraint on logging