By submitting patches for review, you agree to the Developer Certificate of Origin. A copy of this agreement can be found in the project root, named CONTRIBUTING.txt.

Problem/Motivation

It's currently rather difficult to debug when a user encounters restriction enforcement. We should add logging to help this process.

Proposed resolution

Add a configuration option, "Enable logging," which will record a log message after enforcement when checked.

User interface changes

A new configuration option will be added in Geoblock's settings.

API changes

The logger channel factory service will need to be injected into the request event subscriber. Since we don't yet have a stable release, we do not need to be concerned with breaking backward compatibility.

Data model changes

The settings object for Geoblock will have a new boolean key, enable_logging.

Comments

clayfreeman created an issue. See original summary.

clayfreeman’s picture

StatusFileSize
new5.81 KB
clayfreeman’s picture

Status: Active » Needs review
clayfreeman’s picture

StatusFileSize
new5.84 KB
new673 bytes

Ensure that a blank country code produces "unknown" instead of an empty value in the logged message.

clayfreeman’s picture

StatusFileSize
new5.84 KB
new465 bytes

Fix argument order for logging method.

  • clayfreeman committed 7ae847a on 1.0.x
    Issue #3273550 by clayfreeman: Add configuration to optionally record...
clayfreeman’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.