Only show 'unable to translate to path' in verbosity >= 1

This commit is contained in:
Jack Andersen 2017-03-10 08:37:12 -10:00
parent 38e5907ad2
commit 55867616c8
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ hecl::ProjectPath UniqueIDBridge::TranslatePakIdToPath(const IDType& id, bool si
{
if (pakRouter)
{
if (!silenceWarnings && id)
if (hecl::VerbosityLevel >= 1 && !silenceWarnings && id)
LogDNACommon.report(logvisor::Warning,
"unable to translate %s to path", id.toString().c_str());
return {};
@ -43,7 +43,7 @@ hecl::ProjectPath UniqueIDBridge::TranslatePakIdToPath(const IDType& id, bool si
const hecl::ProjectPath* search = project->lookupBridgePath(id.toUint64());
if (!search)
{
if (!silenceWarnings && id)
if (hecl::VerbosityLevel >= 1 && !silenceWarnings && id)
LogDNACommon.report(logvisor::Warning,
"unable to translate %s to path", id.toString().c_str());
return {};