Use the file path instead of its ID in the log messages (see #6867)