From b9a90b134d8b855d48a7d762566c47d534450f52 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Mon, 27 Nov 2017 11:12:59 +0100 Subject: [PATCH] Don't print failure to tag sessions with user agent; usually not a big deal --- src/controller/controller_statistics.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controller/controller_statistics.cpp b/src/controller/controller_statistics.cpp index 38488543..5846dec0 100644 --- a/src/controller/controller_statistics.cpp +++ b/src/controller/controller_statistics.cpp @@ -234,7 +234,9 @@ void Controller::sessId_tag(const std::string & sessId, const std::string & tag) return; } } - WARN_MSG("Session %s not found - cannot tag with %s", sessId.c_str(), tag.c_str()); + if (tag.substr(0, 3) != "UA:"){ + WARN_MSG("Session %s not found - cannot tag with %s", sessId.c_str(), tag.c_str()); + } } ///Shuts down sessions with the given tag set