mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Log debug messages to webserver.log when debug.webserver is true
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -239,9 +239,10 @@ static void DEBUG_TRACE_FUNC(const char *func,
|
||||
#endif
|
||||
|
||||
#else
|
||||
#include "log.h"
|
||||
#define DEBUG_TRACE(fmt, ...) \
|
||||
do { \
|
||||
} while (0)
|
||||
if(debug_flags[DEBUG_WEBSERVER]) {\
|
||||
log_web("DEBUG: " fmt " (%s:%d)", ##__VA_ARGS__, short_path(__FILE__), __LINE__); }
|
||||
#endif /* DEBUG */
|
||||
#endif /* DEBUG_TRACE */
|
||||
|
||||
|
||||
@@ -213,7 +213,7 @@ mbed_ssl_accept(mbedtls_ssl_context **ssl,
|
||||
return -1;
|
||||
}
|
||||
|
||||
DEBUG_TRACE("TLS connection %p accepted, state: %d", ssl, (*ssl)->state);
|
||||
DEBUG_TRACE("TLS connection %p accepted, state: %d", ssl, (*ssl)->MBEDTLS_PRIVATE(state));
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -239,7 +239,7 @@ mbed_ssl_handshake(mbedtls_ssl_context *ssl)
|
||||
}
|
||||
}
|
||||
|
||||
DEBUG_TRACE("TLS handshake rc: %d, state: %d", rc, ssl->state);
|
||||
DEBUG_TRACE("TLS handshake rc: %d, state: %d", rc, ssl->MBEDTLS_PRIVATE(state));
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user