Update agent.py

made changes to record_log()