Change loglevels for logging logging; move payload logic in build_docs