Closed (fixed)
Project:
Geocoder
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jan 2015 at 16:18 UTC
Updated:
17 Mar 2016 at 14:56 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tessa bakkerComment #2
tessa bakkerHere is a new patch, this one handles 'Zero results' returned by Google as a watchdog notice.
Comment #3
spadxiii commentedIn the yandex.inc you do 'throw new Exception($msg, WATCHDOG_WARNING);' but in the part that's similar in google.inc, you do 'throw new Exception($msg, WATCHDOG_ERROR);'. Shouldn't both be errors?
Comment #4
adamps commentedPatch works for me thanks. The "zero results" was the crucial one that was flooding my log with errors. I've changed the issue category to a bug report on the basis that it seems to be an existing function that's not working correctly.
In terms of #3 by SpadXIII - presumably the correct level would depend how readily the message can occur. For example if it can come from just a network glitch, warning is probably right. However I don't use yandex so I can't comment on that. If the yandex part is in doubt, I'd still appreciate a commit of the google part, thanks.
Comment #5
basvredeling+1 this patch is ok.
@SpadXIII the yandex part seems to cover all kinds of warnings, not just connection fails. Hence the difference in error level.
Comment #7
simon georges commentedCommitted, thanks!
Comment #9
adamps commentedThis fix was released into v1.3 Unfortunately some other changes in the v1.3 release broke the function again.
I have raised a new issue #2689211: Confusion with errors and logging.