Enclose subject common name in square brackets.

May be helful for log analysis.
This commit is contained in:
SET
2020-11-25 19:14:50 +01:00
parent 93bd93a0fa
commit 127cb7d738

View File

@@ -47,7 +47,7 @@ static void LogGpgMEError(const GpgME::Error& e)
WLogger logger;
logger.setFile(logfile);
logger.entry("") << WLogger::timestamp
<< WLogger::sep << subjectCommonName
<< WLogger::sep << WString("[") << subjectCommonName << WString("]")
<< WLogger::sep << WApplication::instance()->environment().userAgent()
<< WLogger::sep << std::to_string(e.code())
<< WLogger::sep << e.asString();