Skip to content

GeoIP re-attribution: debug output not showing changes #12477

@lwille

Description

@lwille

Actual Output:

DEBUG [2018-01-18 13:48:03] Updating visit with idvisit = 2944645199 (IP = 95.236.0.0). Changes: [array]

Expected output:

DEBUG [2018-01-18 13:48:03] Updating visit with idvisit = 2944645199 (IP = 95.236.0.0). Changes: {"location_country":"it","location_region":"15","location_city":"Catania","location_latitude":37.5,"location_longitude":15.1}

Suggested fix: use json_encode to print a readable representation of the changeset.

https://github.com/matomo-org/matomo/blob/master/plugins/UserCountry/VisitorGeolocator.php#L192

Metadata

Metadata

Assignees

No one assigned

    Labels

    not-in-changelogFor issues or pull requests that should not be included in our release changelog on matomo.org.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions