Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Compare Revisions
bf3da76e32fbc8cd7785fa1fe73297082972d4f9...a7f6b8549d24feb43c83ee44edec268449d72597
Commits (1)
Include client IP address in HTTP-level error log messages
· a7f6b854
Rob Swindell
authored
Apr 04, 2022
a7f6b854
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/sbbs3/websrvr.c
src/sbbs3/websrvr.c
+1
-1
No files found.
src/sbbs3/websrvr.c
View file @
a7f6b854
...
...
@@ -1491,7 +1491,7 @@ static void send_error(http_session_t * session, unsigned line, const char* mess
if
(
session
->
socket
==
INVALID_SOCKET
)
return
;
session
->
req
.
if_modified_since
=
0
;
lprintf
(
LOG_INFO
,
"%04d !ERROR: %s (line %u)"
,
session
->
socket
,
message
,
line
);
lprintf
(
LOG_INFO
,
"%04d
[%s]
!ERROR: %s (line %u)"
,
session
->
socket
,
session
->
host_ip
,
message
,
line
);
session
->
req
.
keep_alive
=
FALSE
;
session
->
req
.
send_location
=
NO_LOCATION
;
SAFECOPY
(
error_code
,
message
);
...
...