Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit b8faafc

Browse files
committed
only one trace logging system
1 parent cdc50e3 commit b8faafc

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

script/optest.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111

1212
from otest.aus.app import WebApplication
1313
from otest.aus.client import Factory
14-
from otest.aus.io import WebIO
14+
from otest.aus.handling import WebIh
1515
from otest.conf_setup import construct_app_args
16-
from otest.utils import SERVER_LOG_FOLDER, setup_logging
16+
from otest.utils import SERVER_LOG_FOLDER
17+
from otest.utils import setup_logging
1718
from otest.utils import setup_common_log
1819

1920
from oidctest.app_conf import REST
@@ -115,7 +116,7 @@ def pick_grp(name):
115116

116117
setup_logging("%s/rp_%s.log" % (SERVER_LOG_FOLDER, args.port), logger)
117118

118-
WA = WebApplication(sessionhandler=SessionHandler, webio=WebIO,
119+
WA = WebApplication(sessionhandler=SessionHandler, webio=WebIh,
119120
webtester=WebTester, check=check, webenv=app_args,
120121
pick_grp=pick_grp, path=_path)
121122

test_tool/test_op/server/heart_mako/htdocs/logs.mako

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,19 @@ def display_log(base, logs, issuer, profile):
1414
1515
if profile:
1616
for name, path in logs:
17-
el += '<li><a href="{}{}" download="{}{}.html">{}</a>'.format(
18-
base, path, base, name, name)
19-
elif 'issuer':
17+
el += '<li><a href="{}{}" download="{}.html">{}</a>'.format(
18+
base, path, name, name)
19+
elif issuer:
2020
for name, path in logs:
21-
_tarfile = "{}/%s.tar".format(base,path.replace("log", "tar"))
22-
el += '<li><a href="{}{}">{}</a> tar file:<a href="{}{}">Download logs</a>'.format(
23-
base, path, name, base,_tarfile)
21+
_tarfile = "{}{}.tar".format(base, path.replace("log", "tar"))
22+
el += '<li><a href="{}{}">{}</a> tar file:<a href="{}">Download logs</a>'.format(
23+
base, path, name, _tarfile)
2424
else:
2525
for name, path in logs:
26-
el += '<li><a href="{}{}">%s</a>' % (base, path, name)
26+
el += '<li><a href="{}{}">{}</a>'.format(base, path, name)
2727
el += "</ul>"
2828
return el
2929
%>
30-
3130
<%
3231
LINK_INFO = [
3332
{
@@ -79,7 +78,7 @@ def display_log(base, logs, issuer, profile):
7978
<!-- Main component for a primary marketing message or call to action -->
8079
<div class="jumbotron">
8180
<h1>HEART OIDC OP Test logs</h1>
82-
${display_log(basr, logs, issuer, profile)}
81+
${display_log(base, logs, issuer, profile)}
8382
</div>
8483

8584
</div> <!-- /container -->

0 commit comments

Comments
 (0)