buaazp: fixed bug with debugln(str) to log file.