resolve issue33 - due to incorecctly nested if statment log settings dis...

Due to an incorrectly nested if statement log settings disappeared when mapping was disabled.  

I have un-nested the if statement and re-indented code accordingly.