Skip to content
Extraits de code Groupes Projets
Valider c7eead01 rédigé par mattpiwik's avatar mattpiwik
Parcourir les fichiers

Refs #703 Display response output when tracking request failed (this happens...

Refs #703 Display response output when tracking request failed (this happens for example when debug is enabled in piwik.php)

git-svn-id: http://dev.piwik.org/svn/trunk@6074 59fd770c-687e-43c8-a1e3-f5a4ff64c105
parent ea7c477f
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -426,13 +426,13 @@ Website import summary
%(total_sites_ignored)d distinct hostnames did not match any existing site:
%(sites_ignored)s
TIPs:
- if one of these hosts is an alias host for one of the websites
- if one of these hosts is an alias host for one of the websites
in Piwik, you can add this host as an "Alias URL" in Settings > Websites.
- use --add-sites-new-hosts if you wish to automatically create
one website for each of these hosts in Piwik rather than discarding
these requests.
- use --idsite-fallback to force all these log lines with a new hostname
to be recorded in a specific idsite (for example for troubleshooting/visualizing the data)
- use --idsite-fallback to force all these log lines with a new hostname
to be recorded in a specific idsite (for example for troubleshooting/visualizing the data)
- use --idsite to force all lines in the specified log files
to be all recorded in the specified idsite
......@@ -576,7 +576,8 @@ class Piwik(object):
try:
response = func(*args, **kwargs)
if expected_response is not None and response != expected_response:
raise urllib2.URLError("didn't receive the expected response")
raise urllib2.URLError("didn't receive the expected response. Response was %s "
% ((response[:200] + '..') if len(response) > 200 else data))
return response
except (urllib2.URLError, ValueError), e:
logging.debug('Error when connecting to Piwik: %s', e)
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter