applied recent changes from Nino

This commit is contained in:
Jocelyn Fiat
2011-11-03 18:50:19 +01:00
parent 16cab53fb4
commit 07f9a8cec7
4 changed files with 9 additions and 3 deletions

View File

@@ -160,7 +160,7 @@ feature -- Execution
l_body.append ("<li><a href=%""+ req.script_url ("/hello/Joce") + "%">/hello/Joce</a></li>%N")
l_body.append ("</ul>%N")
if attached req.item ("REQUEST_COUNT") as rqc then
l_body.append ("request #"+ rqc.as_string + "%N")
l_body.append ("request #"+ rqc.as_string.string + "%N")
end
l_body.append ("</body></html>%N")

View File

@@ -45,6 +45,12 @@ feature -- Status settings
configuration.force_single_threaded := True
end
set_is_verbose (b: BOOLEAN)
-- Set verbose message behavior to `b'
do
configuration.set_is_verbose (b)
end
feature -- Server
listen (a_port: INTEGER)

View File

@@ -69,7 +69,7 @@ feature -- Server
l_http_handler : HTTP_HANDLER
do
create {WGI_NINO_HANDLER} l_http_handler.make_with_callback (server, "NINO_HANDLER", Current)
debug ("nino")
if configuration.is_verbose then
if attached base as l_base then
print ("Base=" + l_base + "%N")
end