mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-10-07 04:02:18 +03:00
MHD_daemon_event_update(): finished two log messages
This commit is contained in:
3 files changed
+31
-4
No files matched your search
@@ -1684,6 +1684,17 @@ enum MHD_FIXED_ENUM_MHD_SET_ MHD_StatusCode
|
||||
* The application failed to de-register FD for the external events monitoring
|
||||
*/
|
||||
MHD_SC_EXTR_EVENT_DEREG_FAILED = 60244
|
||||
,
|
||||
/**
|
||||
* The application called #MHD_daemon_event_update() with broken data
|
||||
*/
|
||||
MHD_SC_EXTR_EVENT_BROKEN_DATA = 60250
|
||||
,
|
||||
/**
|
||||
* The application called #MHD_daemon_event_update() with status that
|
||||
* has not been requested
|
||||
*/
|
||||
MHD_SC_EXTR_EVENT_UNEXPECTED_STATUS = 60251
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -1684,6 +1684,17 @@ enum MHD_FIXED_ENUM_MHD_SET_ MHD_StatusCode
|
||||
* The application failed to de-register FD for the external events monitoring
|
||||
*/
|
||||
MHD_SC_EXTR_EVENT_DEREG_FAILED = 60244
|
||||
,
|
||||
/**
|
||||
* The application called #MHD_daemon_event_update() with broken data
|
||||
*/
|
||||
MHD_SC_EXTR_EVENT_BROKEN_DATA = 60250
|
||||
,
|
||||
/**
|
||||
* The application called #MHD_daemon_event_update() with status that
|
||||
* has not been requested
|
||||
*/
|
||||
MHD_SC_EXTR_EVENT_UNEXPECTED_STATUS = 60251
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -56,6 +56,7 @@ MHD_daemon_event_update (
|
||||
return;
|
||||
|
||||
broken_app_data = false;
|
||||
unneeded_event = false;
|
||||
|
||||
switch ((mhd_SockRelMarker) ecb_cntx)
|
||||
{
|
||||
@@ -115,12 +116,16 @@ MHD_daemon_event_update (
|
||||
|
||||
if (broken_app_data)
|
||||
{
|
||||
// TODO: log error
|
||||
(void) 0;
|
||||
mhd_LOG_MSG (daemon, \
|
||||
MHD_SC_EXTR_EVENT_BROKEN_DATA, \
|
||||
"MHD_daemon_event_update() is called with broken content " \
|
||||
"data");
|
||||
}
|
||||
else if (unneeded_event)
|
||||
{
|
||||
// TODO: log error
|
||||
(void) 0;
|
||||
mhd_LOG_MSG (daemon, \
|
||||
MHD_SC_EXTR_EVENT_BROKEN_DATA, \
|
||||
"MHD_daemon_event_update() is called with status that has " \
|
||||
"not been requested");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user