Xqt created this task.
Xqt added projects: Pywikibot, Pywikibot-tests.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  **What happens**:
  
  If an API Error occurs during CI tests, additional informations are printed 
to the log file:
  
    # raise error
    try:
        param_repr = str(self._params)
        pywikibot.log('API Error: query=\n{}'
                      .format(pprint.pformat(param_repr)))
        pywikibot.log(f'           response=\n{result}')
    
        raise pywikibot.exceptions.APIError(**error)
    except TypeError:
        raise RuntimeError(result)
  
  
https://pipelines.actions.githubusercontent.com/serviceHosts/c1f2ea67-69db-4ab9-996f-108170f99955/_apis/pipelines/1/runs/4126/signedlogcontent/25?urlExpires=2023-04-04T13%3A14%3A09.4940021Z&urlSigningMethod=HMACV1&urlSignature=RHN0%2BJ3e7eqp%2Bo%2B9UtcwU8e9jfpaIanjTYuau%2BNTjKM%3D
  
  But the log is not reachable an the important information is lost.
  The log is printed in "Generate user files" section but not in Test section.
  
  **What should have happened instead?**:
  Either the log should be reachable somehow or the informations should be 
printed to terminal

TASK DETAIL
  https://phabricator.wikimedia.org/T333957

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt
Cc: Aklapper, Xqt, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, 
SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, 
Mdupont, JJMC89, Dvorapa, Altostratus, binbot, Avicennasis, mys_721tx, jayvdb, 
Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to