updating log file after identifying it for the staging area