Skip to content

Commit 8bc9f44

Browse files
committed
Reduce noise from logs.
1 parent b3a3fe5 commit 8bc9f44

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

process.cc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,8 @@ Process::processAUXV(const Reader &auxio)
281281
*context.debug << "filename from auxv: " << exeName << "\n";
282282
}
283283
catch (const Exception &ex) {
284-
*context.debug << "failed to read AT_EXECFN: " << ex.what() << std::endl;
284+
if (context.verbose > 1)
285+
*context.debug << "failed to read AT_EXECFN: " << ex.what() << std::endl;
285286
}
286287

287288
break;
@@ -780,7 +781,9 @@ Process::addElfObject(std::string_view name, const Elf::Object::sptr &obj, Elf::
780781
bid = bidElf->getBuildID();
781782
}
782783
catch (const Exception &ex) {
783-
*context.debug << "failed to read build id from memory image\n";
784+
// this is not a fatal problem - ELF headers may or may not be present in the core.
785+
if (context.verbose > 1)
786+
*context.debug << "failed to read build id from memory image\n";
784787
}
785788

786789
objects.emplace(std::make_pair(load, MappedObject{ name, bid, obj }));

0 commit comments

Comments
 (0)