From e0df318982fe10a193c3881d7d87ef752a927735 Mon Sep 17 00:00:00 2001 From: Marco Malavolti <marco.malavolti@gmail.com> Date: Mon, 20 Jul 2020 23:24:05 +0200 Subject: [PATCH] Fixed standard output messages when testing --- eccs2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eccs2.py b/eccs2.py index 12c3b10..8b34ab2 100755 --- a/eccs2.py +++ b/eccs2.py @@ -85,7 +85,7 @@ def checkIdP(sp,idp,test): with open("%s/%s/%s---%s.html" % (ECCS2HTMLDIR,DAY,fqdn_idp,fqdn_sp),"w") as html: html.write(page_source) else: - print("[page_source of %s]\n%s" % (fqdn_idp,page_source)) + print("\n[page_source of '%s' for sp '%s']\n%s" % (fqdn_idp,fqdn_sp,page_source)) except TimeoutException as e: if (test is not True): @@ -93,7 +93,7 @@ def checkIdP(sp,idp,test): with open("%s/%s/%s---%s.html" % (ECCS2HTMLDIR,DAY,fqdn_idp,fqdn_sp),"w") as html: html.write("") else: - print("[page_source of %s]\nNo source code" % (fqdn_idp)) + print("\n[page_source of '%s' for sp '%s']\nNo source code" % (fqdn_idp,fqdn_sp)) return (idp['entityID'],wayfless_url,check_time,"(failed)","Timeout") except Exception as e: -- GitLab