Added Log statement to print rules before writing to file

Change-Id: Ie6b7cd785a56acb0855f10a9b10b96dea209acc9