Remove duplicated log key
What does this MR do?
Currently we have a lookup_paths.lookup_paths[] entry in logs. This commit removes this duplication to be only lookup_paths[].
- before
{
"error": null,
"lookup_error": null,
"lookup_name": "root.pages.gdk.test",
"lookup_paths": {
"lookup_paths": [
{
"prefix": "/html/",
"project_id": 9,
"source": {
"file_count": 7,
"file_size": 2170,
"path": "http://127.0.0.1:9000/pages/19/58/19581e27de7ced00ff1ce50b2047e7a567c76b1cbaebabe5ef03f7c3017bb5b7/pages_deployments/4/artifacts.zip?X-Amz-Expires=86400&X-Amz-Date=20230413T205604Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=minio%2F20230413%2Fgdk%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=ab55feed3f4c3c654b4f919c72f66c127279b919b1b8cc2316e802845daa34b8",
"sha256": "ed51ae0543f238188a97392b60268b72afee4104a94c7eeb57008b0f66517d54",
"type": "zip"
},
"unique_host": "html-root-729ab4e008401717e9f530d3fae94e116490c064c46a26ad5d0e1.pages.gdk.test"
}
]
},
"msg": "retrieval response sent",
"requested_domain": "root.pages.gdk.test"
}
- after
{
"error": null,
"lookup_error": null,
"lookup_name": "root.pages.gdk.test",
"lookup_paths": [
{
"prefix": "/html/",
"project_id": 9,
"source": {
"file_count": 7,
"file_size": 2170,
"path": "http://127.0.0.1:9000/pages/19/58/19581e27de7ced00ff1ce50b2047e7a567c76b1cbaebabe5ef03f7c3017bb5b7/pages_deployments/4/artifacts.zip?X-Amz-Expires=86400&X-Amz-Date=20230413T204402Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=minio%2F20230413%2Fgdk%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=944c15ef2f1ce4938f3aaebebb586013ac9bc98b5282c023eb0497243cbc36eb",
"sha256": "ed51ae0543f238188a97392b60268b72afee4104a94c7eeb57008b0f66517d54",
"type": "zip"
},
"unique_host": "html-root-729ab4e008401717e9f530d3fae94e116490c064c46a26ad5d0e1.pages.gdk.test"
}
],
"msg": "retrieval response sent",
"requested_domain": "root.pages.gdk.test"
}
TODO
-
Feature flag
-
Added feature flag: -
This feature does not require a feature flag
-
-
I added the Changelogtrailer to the commits that need to be included in the changelog (e.g.Changelog: added) -
I added unit tests or they are not required -
I added acceptance tests or they are not required -
I added documentation (or it's not required) -
I followed code review guidelines -
I followed Go Style guidelines
Edited by Kassio Borges