aboutsummaryrefslogtreecommitdiff
path: root/src/core/net/srp_server.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/net/srp_server.hpp')
-rw-r--r--src/core/net/srp_server.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/net/srp_server.hpp b/src/core/net/srp_server.hpp
index ebe67d8fe..ac39aee7f 100644
--- a/src/core/net/srp_server.hpp
+++ b/src/core/net/srp_server.hpp
@@ -1047,6 +1047,12 @@ private:
void UpdateResponseCounters(Dns::Header::Response aResponseCode);
void UpdateAddrResolverCacheTable(const Ip6::MessageInfo &aMessageInfo, const Host &aHost);
+#if OT_SHOULD_LOG_AT(OT_LOG_LEVEL_WARN)
+ static void LogError(const char *aActionText, Error aError);
+#else
+ static void LogError(const char *, Error) {}
+#endif
+
using LeaseTimer = TimerMilliIn<Server, &Server::HandleLeaseTimer>;
using UpdateTimer = TimerMilliIn<Server, &Server::HandleOutstandingUpdatesTimer>;
using CompletedUpdatesTask = TaskletIn<Server, &Server::ProcessCompletedUpdates>;