storj / edge

Storj edge services (including multi-tenant, S3-compatible server to interact with the Storj network)
GNU Affero General Public License v3.0
53 stars 18 forks source link

Log at a different level for specific Access Key IDs/macaroon heads/public project IDs #437

Closed amwolff closed 5 months ago

amwolff commented 6 months ago

Goal

If we configure the logging level to, e.g., INFO, it would still be useful to log at, e.g., DEBUG level for specific Access Key IDs.

Acceptance Criteria

Decide which one of Access Key ID/macaroon head/public project ID is the best to pick on the gateway side to differentiate for which requests to log at a different level. It should be possible to add a list to the configuration.

Notes

It might be possible that this function is desirable for more components other than edge. Consider changing the logging code in storj/common.