Add ‘-p’ to mkdir logs to eliminate error message when dir exists