fix logging errors in audio file handling

how on earth did this go unnoticed for so long.