Skip to content

Commit 2422579

Browse files
committed
FIXED: library(http/http_log): exception when logging was disabled.
Harmless as the exception was printed but otherwise ignored.
1 parent 1b53d14 commit 2422579

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

http_log.pl

+3
Original file line numberDiff line numberDiff line change
@@ -269,13 +269,16 @@
269269
% @param Filled with sequence identifier for the request
270270

271271
log_started(Request, Id, Stream) :-
272+
is_stream(Stream),
273+
!,
272274
get_time(Now),
273275
add_post_data(Request, Request1),
274276
log_request(Request1, LogRequest),
275277
format_time(string(HDate), '%+', Now),
276278
format(Stream,
277279
'/*~s*/ request(~q, ~3f, ~q).~n',
278280
[HDate, Id, Now, LogRequest]).
281+
log_started(_, _, _).
279282

280283
%! log_request(+Request, -Log)
281284
%

0 commit comments

Comments
 (0)