Add debugging output to artifacts upload script.