fixed log creation to happen even if data_logging file is already created