Are you getting the log from the device or agent? Some code would help a lot to understand what you are doing.