log node name

This commit is contained in:
Jeff Becker 2019-05-09 11:36:14 -04:00
parent e80f7419b0
commit 767b521325
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
1 changed files with 2 additions and 0 deletions

View File

@ -104,6 +104,8 @@ namespace llarp
std::stringstream ss;
log.logStream->PreLog(ss, lvl, fname, lineno);
if(nodeName.size())
Logappend(ss, "[", nodeName, "] ");
LogAppend(ss, std::forward< TArgs >(args)...);
log.logStream->PostLog(ss);
log.logStream->Print(lvl, fname, ss.str());