Skip to content

Commit 3234567

Browse files
author
Sebastiano Merlino
committed
Solved a bug with print in debug mode
1 parent b4209eb commit 3234567

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/webserver.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,10 @@ int webserver::finalize_answer(MHD_Connection* connection, struct modded_request
775775
}
776776
mr->dhr->set_underlying_connection(connection);
777777
#ifdef DEBUG
778-
cout << "Using: " << found_endpoint->first.get_url_complete() << endl;
778+
if(found)
779+
cout << "Using: " << found_endpoint->first.get_url_complete() << endl;
780+
else
781+
cout << "Endpoint not found!" << endl;
779782
#endif
780783
#ifdef WITH_PYTHON
781784
PyGILState_STATE gstate;

0 commit comments

Comments
 (0)