Merge pull request #1979 from leyyin/log-bad-requests
Add logging for API requests that are not successful.
This commit is contained in:
commit
c4ccf16ba6
3
.gitignore
vendored
3
.gitignore
vendored
@ -41,6 +41,9 @@ src/html
|
|||||||
*~
|
*~
|
||||||
*.swp
|
*.swp
|
||||||
|
|
||||||
|
# Ignore QtCreator project file
|
||||||
|
CMakeLists.txt.user
|
||||||
|
|
||||||
packets_log.txt
|
packets_log.txt
|
||||||
history.dat
|
history.dat
|
||||||
README.dependencies
|
README.dependencies
|
||||||
|
@ -71,6 +71,11 @@ namespace Online
|
|||||||
{
|
{
|
||||||
m_success = (rec_success == "yes");
|
m_success = (rec_success == "yes");
|
||||||
m_xml_data->get("info", &m_info);
|
m_xml_data->get("info", &m_info);
|
||||||
|
|
||||||
|
if (!m_success)
|
||||||
|
{
|
||||||
|
Log::debug("XMLRequest::afterOperation", "Request returned error: %ls", m_info.c_str());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user