Removed overhead of calling getCurrentLogFileName()

#Modification: getCurrentLogFileName() was being called only once, and
was an overhead, considering its functionality, hence removed