From 82b136aecaed1706e0a5931acfbe068ec4431104 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 29 Dec 2019 02:39:00 +0100 Subject: [PATCH] Log maximum status length before resizing. --- src/mastoapi.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mastoapi.cpp b/src/mastoapi.cpp index 0e9de8c..d41c82c 100644 --- a/src/mastoapi.cpp +++ b/src/mastoapi.cpp @@ -72,6 +72,8 @@ void MastoAPI::post_item(const Item &item) } return _profile.max_size; }()}; + BOOST_LOG_TRIVIAL(debug) << "Maximum status length: " << status.size(); + constexpr string_view omission = " […]"; if ((len_status + len_append) > len_max)