From b9a54b8ffbc8630e998de33c7a84743a8c5242e9 Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Wed, 9 Aug 2023 17:45:59 +0200 Subject: [PATCH] added #define DISABLE_DEBUGLOG to source files in http and service folders will alter be enabled to disable verbose debug logging. --- aqhome/http/content.c | 2 ++ aqhome/http/content_files.c | 3 +++ aqhome/http/endpoint_http.c | 2 ++ aqhome/http/httprequest.c | 2 ++ aqhome/http/httpservice.c | 2 ++ aqhome/http/httpservice_conf.c | 2 ++ aqhome/http/httpservice_http.c | 2 ++ aqhome/http/urlhandler.c | 2 ++ aqhome/service/service.c | 2 ++ 9 files changed, 19 insertions(+) diff --git a/aqhome/http/content.c b/aqhome/http/content.c index 51a5205..ea9a254 100644 --- a/aqhome/http/content.c +++ b/aqhome/http/content.c @@ -10,6 +10,8 @@ # include #endif +//#define DISABLE_DEBUGLOG + #include "aqhome/http/content_p.h" diff --git a/aqhome/http/content_files.c b/aqhome/http/content_files.c index c0643fd..7f50c08 100644 --- a/aqhome/http/content_files.c +++ b/aqhome/http/content_files.c @@ -10,6 +10,9 @@ # include #endif +//#define DISABLE_DEBUGLOG + + #include "aqhome/http/content_files_p.h" #include diff --git a/aqhome/http/endpoint_http.c b/aqhome/http/endpoint_http.c index 9113416..0671ac4 100644 --- a/aqhome/http/endpoint_http.c +++ b/aqhome/http/endpoint_http.c @@ -10,6 +10,8 @@ # include #endif +//#define DISABLE_DEBUGLOG + #include "aqhome/http/endpoint_http_p.h" diff --git a/aqhome/http/httprequest.c b/aqhome/http/httprequest.c index d891aa9..7328500 100644 --- a/aqhome/http/httprequest.c +++ b/aqhome/http/httprequest.c @@ -10,6 +10,8 @@ # include #endif +//#define DISABLE_DEBUGLOG + #include "./httprequest_p.h" diff --git a/aqhome/http/httpservice.c b/aqhome/http/httpservice.c index 7f02336..3868cd7 100644 --- a/aqhome/http/httpservice.c +++ b/aqhome/http/httpservice.c @@ -10,6 +10,8 @@ # include #endif +//#define DISABLE_DEBUGLOG + #include "aqhome/http/httpservice_p.h" diff --git a/aqhome/http/httpservice_conf.c b/aqhome/http/httpservice_conf.c index d9e1871..94b0fb9 100644 --- a/aqhome/http/httpservice_conf.c +++ b/aqhome/http/httpservice_conf.c @@ -10,6 +10,8 @@ # include #endif +//#define DISABLE_DEBUGLOG + #include "aqhome/http/httpservice_conf.h" #include "aqhome/http/httpservice_p.h" diff --git a/aqhome/http/httpservice_http.c b/aqhome/http/httpservice_http.c index 781151b..b737233 100644 --- a/aqhome/http/httpservice_http.c +++ b/aqhome/http/httpservice_http.c @@ -10,6 +10,8 @@ # include #endif +//#define DISABLE_DEBUGLOG + #include "aqhome/http/httpservice_http.h" #include "aqhome/http/httpservice_conf.h" diff --git a/aqhome/http/urlhandler.c b/aqhome/http/urlhandler.c index 26d0706..3484eaa 100644 --- a/aqhome/http/urlhandler.c +++ b/aqhome/http/urlhandler.c @@ -10,6 +10,8 @@ # include #endif +//#define DISABLE_DEBUGLOG + #include "./urlhandler_p.h" #include "aqhome/http/httpservice_http.h" diff --git a/aqhome/service/service.c b/aqhome/service/service.c index 06f32d4..5a04bac 100644 --- a/aqhome/service/service.c +++ b/aqhome/service/service.c @@ -10,6 +10,8 @@ # include #endif +//#define DISABLE_DEBUGLOG + #include "aqhome/service/service_p.h"