mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 07:57:13 +02:00
Fix ICANN reporting log signature breakage
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=137996402
This commit is contained in:
parent
8256120b3a
commit
dcd7f6e1e7
2 changed files with 4 additions and 3 deletions
|
@ -32,6 +32,7 @@ import datetime
|
||||||
# exact format, so it must be kept in sync with the logging site.
|
# exact format, so it must be kept in sync with the logging site.
|
||||||
# TODO(b/20725722): make the log statement format more robust.
|
# TODO(b/20725722): make the log statement format more robust.
|
||||||
FLOWRUNNER_LOG_SIGNATURE_PATTERN = '(?:{}): EPP Command'.format('|'.join([
|
FLOWRUNNER_LOG_SIGNATURE_PATTERN = '(?:{}): EPP Command'.format('|'.join([
|
||||||
|
'google.registry.flows.FlowRunner run',
|
||||||
'com.google.domain.registry.flows.FlowRunner run',
|
'com.google.domain.registry.flows.FlowRunner run',
|
||||||
# TODO(b/29397966): figure out why this is FormattingLogger vs FlowRunner.
|
# TODO(b/29397966): figure out why this is FormattingLogger vs FlowRunner.
|
||||||
'com.google.domain.registry.util.FormattingLogger log',
|
'com.google.domain.registry.util.FormattingLogger log',
|
||||||
|
|
|
@ -241,8 +241,8 @@
|
||||||
|
|
||||||
-- Query EPP request logs and extract the clientId and raw EPP XML.
|
-- Query EPP request logs and extract the clientId and raw EPP XML.
|
||||||
SELECT
|
SELECT
|
||||||
REGEXP_EXTRACT(logMessage, r'^(?:com.google.domain.registry.flows.FlowRunner run|com.google.domain.registry.util.FormattingLogger log|google.registry.util.FormattingLogger log): EPP Command\n\t.+\n\t(.+)\n') AS clientId,
|
REGEXP_EXTRACT(logMessage, r'^(?:google.registry.flows.FlowRunner run|com.google.domain.registry.flows.FlowRunner run|com.google.domain.registry.util.FormattingLogger log|google.registry.util.FormattingLogger log): EPP Command\n\t.+\n\t(.+)\n') AS clientId,
|
||||||
REGEXP_EXTRACT(logMessage, r'^(?:com.google.domain.registry.flows.FlowRunner run|com.google.domain.registry.util.FormattingLogger log|google.registry.util.FormattingLogger log): EPP Command\n\t.+\n\t.+\n\t.+\n\t((?s).+)$') AS xml,
|
REGEXP_EXTRACT(logMessage, r'^(?:google.registry.flows.FlowRunner run|com.google.domain.registry.flows.FlowRunner run|com.google.domain.registry.util.FormattingLogger log|google.registry.util.FormattingLogger log): EPP Command\n\t.+\n\t.+\n\t.+\n\t((?s).+)$') AS xml,
|
||||||
FROM (
|
FROM (
|
||||||
-- BEGIN LOGS QUERY --
|
-- BEGIN LOGS QUERY --
|
||||||
|
|
||||||
|
@ -263,7 +263,7 @@
|
||||||
WHERE
|
WHERE
|
||||||
-- EPP endpoints from the proxy, regtool, and console respectively.
|
-- EPP endpoints from the proxy, regtool, and console respectively.
|
||||||
requestPath IN ('/_dr/epp', '/_dr/epptool', '/registrar-xhr')
|
requestPath IN ('/_dr/epp', '/_dr/epptool', '/registrar-xhr')
|
||||||
AND REGEXP_MATCH(logMessage, r'^(?:com.google.domain.registry.flows.FlowRunner run|com.google.domain.registry.util.FormattingLogger log|google.registry.util.FormattingLogger log): EPP Command')
|
AND REGEXP_MATCH(logMessage, r'^(?:google.registry.flows.FlowRunner run|com.google.domain.registry.flows.FlowRunner run|com.google.domain.registry.util.FormattingLogger log|google.registry.util.FormattingLogger log): EPP Command')
|
||||||
|
|
||||||
-- END EPP XML LOGS QUERY --
|
-- END EPP XML LOGS QUERY --
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue