Log overwriting of metadata files

Gives more info for cases like #2641
Merge pull request #2687 from mano3m/develop_log_metadata

Log overwriting of metadata files