@@ -1274,9 +1274,6 @@ async def populate_jsone_context(chain, parent_link, decision_link, tasks_for):
1274
1274
'Unknown cot_product_type "{}" for cot_product "{}"!' .format (chain .context .config ["cot_product_type" ], chain .context .config ["cot_product" ])
1275
1275
)
1276
1276
1277
- log .debug ("{} json-e context:" .format (parent_link .name ))
1278
- # format_json() breaks on lambda values; use pprint.pformat here.
1279
- log .debug (pprint .pformat (jsone_context ))
1280
1277
return jsone_context
1281
1278
1282
1279
@@ -1820,7 +1817,6 @@ def get_source_url(obj):
1820
1817
"""
1821
1818
source_env_prefix = obj .context .config ["source_env_prefix" ]
1822
1819
task = obj .task
1823
- log .debug ("Getting source url for {} {}..." .format (obj .name , obj .task_id ))
1824
1820
repo = get_repo (obj .task , source_env_prefix = source_env_prefix )
1825
1821
source = task ["metadata" ]["source" ]
1826
1822
if repo and not verify_repo_matches_url (repo , source ):
@@ -1944,7 +1940,7 @@ async def verify_chain_of_trust(chain, *, check_task=False):
1944
1940
raise
1945
1941
else :
1946
1942
raise CoTError (str (exc ))
1947
- log .info ("Good." )
1943
+ log .info ("taskId %s passes chain of trust verification." , chain . task_id )
1948
1944
1949
1945
1950
1946
# verify_cot_cmdln {{{1
@@ -1970,10 +1966,6 @@ async def _async_verify_cot_cmdln(opts, tmp):
1970
1966
context .config ["github_oauth_token" ] = os .environ .get ("SCRIPTWORKER_GITHUB_OAUTH_TOKEN" )
1971
1967
cot = ChainOfTrust (context , opts .task_type , task_id = opts .task_id )
1972
1968
await verify_chain_of_trust (cot , check_task = True )
1973
- log .info (format_json (cot .dependent_task_ids ()))
1974
- log .info ("{} : {}" .format (cot .name , cot .task_id ))
1975
- for link in cot .links :
1976
- log .info ("{} : {}" .format (link .name , link .task_id ))
1977
1969
1978
1970
1979
1971
def verify_cot_cmdln (args = None , event_loop = None ):
0 commit comments