Add  some context to the log message instead of null, e.g. "Error getting unique path for file id".