Skip to content

Commit 0af7257

Browse files
committed
Remove needless hrule and consolitate log lines
1 parent 5c6a28c commit 0af7257

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

lib/repository/teapot-wserver.tm

+7-6
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ snit::type ::teapot::wserver {
147147
set path [string trimleft $r(-path) /]
148148

149149
log::debug "Dispatch for \"$path\""
150-
log::info [string repeat "=" [string length "Request: $path"]]
150+
# log::debug [string repeat "=" [string length "Request: $path"]]
151151
log::info "Request: $path"
152152

153153
# _ _ _ ___ ___ ___ _________ _________ _________
@@ -272,13 +272,14 @@ snit::type ::teapot::wserver {
272272

273273
if {![regexp "^$p$" $path]} continue
274274

275-
set logmsg "Redirection Pattern: $p"
276-
append logmsg "Redirection Destination: $dst"
277-
278275
set path [string map [list ! $path] $dst]
279276

280-
append logmsg "Redirected to: $path"
281-
log::info $logmsg
277+
# Redirection Pattern: $p
278+
# Redirection Destination $dst
279+
# Redirected to $path
280+
281+
log::info "Redirect Map: [join [list $p $dst $path] ":"]"
282+
282283
return $path
283284
}
284285

0 commit comments

Comments
 (0)