Skip to content

Commit

Permalink
Censor token from new stored creds block.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwalton3 committed Mar 15, 2023
1 parent 5f2588f commit ee6ff10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/Log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ static void qtMessageOutput(QtMsgType type, const QMessageLogContext& context, c

if (logToTerminal) {
std::cerr << qPrintable(message) << std::endl;
}
}

if (logFileIsOpen) {
logFile.write(message.toUtf8() + '\n');
Expand Down Expand Up @@ -70,6 +70,7 @@ void Log::CensorAuthTokens(QString& msg)
elidePattern(msg, "api_key=", 32);
elidePattern(msg, "ApiKey=", 32);
elidePattern(msg, "AccessToken=", 32);
elidePattern(msg, "AccessToken\":\"", 32);
}

/////////////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit ee6ff10

Please sign in to comment.