Browse Source

Merge pull request #21 from zerotier/joseph-henry-disable-http-debug

Disable debug logging for the HTTP API library
Joseph Henry 1 month ago
parent
commit
458c5c9709
1 changed files with 2 additions and 2 deletions
  1. 2 2
      service/OneService.cpp

+ 2 - 2
service/OneService.cpp

@@ -2609,8 +2609,8 @@ class OneServiceImpl : public OneService {
 		_controlPlaneV6.set_pre_routing_handler(authCheck);
 
 #if ZT_DEBUG == 1
-		_controlPlane.set_logger([](const httplib::Request& req, const httplib::Response& res) { fprintf(stderr, "%s", http_log(req, res).c_str()); });
-		_controlPlaneV6.set_logger([](const httplib::Request& req, const httplib::Response& res) { fprintf(stderr, "%s", http_log(req, res).c_str()); });
+		//_controlPlane.set_logger([](const httplib::Request& req, const httplib::Response& res) { fprintf(stderr, "%s", http_log(req, res).c_str()); });
+		//_controlPlaneV6.set_logger([](const httplib::Request& req, const httplib::Response& res) { fprintf(stderr, "%s", http_log(req, res).c_str()); });
 #endif
 		if (_primaryPort == 0) {
 			fprintf(stderr, "unable to determine local control port");