Closed GoogleCodeExporter closed 8 years ago
The cause of this behavior is that you are calling $user->LogDefaults()
multiple
times, and the current logic adds new log file appenders each time. In general
you
should be creating your AdWordsUser ans services only once, not inside your
method.
I'll work on a fix that prevents these duplicates however.
Original comment by api.ekol...@gmail.com
on 19 Jan 2010 at 9:25
Thanks for the solution. I still understand how I'm calling the
$user->LogDefaults().
It calls it for each keyword which is correct but don't see where it calls for
multiple times for one single keyword.
Let's say if you are checking 5 keywords it will record :
1 times for 1st keyword
2 times for 2nd keyword
3 times for 3rd keyword
4 times for 4th keyword
and 5 times for 5th keyword. So it records total of 15 records for only 5
keywords.
Thanks again,
Can
Original comment by hikmetca...@gmail.com
on 19 Jan 2010 at 9:32
[deleted comment]
So for each keyword your program called $user->LogDefaults(), which added an
appender
to the logging mechanism. The logic to check for duplicate appenders wasn't
working
correctly, so the number of appenders grew over time. So for the first keyword
there
was one appender, so it was logged once. For the second keyword there were now
two
appenders total, so it was logged twice, etc.
Original comment by api.ekol...@gmail.com
on 20 Jan 2010 at 4:08
This was fixed in version 1.2.2.
Original comment by api.ekol...@gmail.com
on 20 Jan 2010 at 4:25
Thanks.
Original comment by hikmetca...@gmail.com
on 20 Jan 2010 at 4:27
Original issue reported on code.google.com by
hikmetca...@gmail.com
on 17 Dec 2009 at 10:04Attachments: