From 26b3d56fdf02a502080ba7766e854c611a25130d Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 29 Dec 2019 05:27:16 +0100 Subject: [PATCH] Don't output access token in debug log. --- man/mastorss.1.adoc | 3 +-- src/config.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/man/mastorss.1.adoc b/man/mastorss.1.adoc index b9a33c1..cb614d6 100644 --- a/man/mastorss.1.adoc +++ b/man/mastorss.1.adoc @@ -170,8 +170,7 @@ proxy support yet, sorry. == DEBUGGING -Define the variable `MASTORSS_DEBUG` to enable debug output. The output will -contain the access token, so be careful if you share it. +Define the variable `MASTORSS_DEBUG` to enable debug output. .Debug mastorss while using the profile “example”. ================================================================================ diff --git a/src/config.cpp b/src/config.cpp index 54bea9d..53e0483 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -41,8 +41,7 @@ using std::move; std::ostream &operator <<(std::ostream &out, const ProfileData &data) { - out << "access_token: \"" << data.access_token << "\", " - << "append: \"" << data.append << "\", " + out << "append: \"" << data.append << "\", " << "feedurl: \"" << data.feedurl << "\", " << "fixes: ["; for (const auto &fix : data.fixes)