Skip to content

Commit 211aadd

Browse files
Sandlot19CQ Bot
authored andcommitted
[debugger] Remove unused error condition
I noticed the error condition was incorrect, so the warning log was not being printed anyway. The client code will choose whether or not to display the error in the status field of the reply. Change-Id: I40d7991a782c6018be022c49b5654f1961db0137 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1152475 Fuchsia-Auto-Submit: Jacob Rutherford <[email protected]> Reviewed-by: Adam Barth <[email protected]> Commit-Queue: Auto-Submit <[email protected]>
1 parent 9ce1745 commit 211aadd

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/developer/debug/debug_agent/debug_agent.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -766,9 +766,6 @@ void DebugAgent::OnAttach(const debug_ipc::AttachRequest& request, debug_ipc::At
766766
if (request.config.target == debug_ipc::AttachConfig::Target::kJob) {
767767
if (!IsAttachedToParentOrAncestorOf(request.koid)) {
768768
reply->status = AttachToExistingJob(request.koid, request.config, reply);
769-
if (reply->status.ok()) {
770-
DEBUG_LOG(Agent) << "Could not attach to job: " << reply->status.message();
771-
}
772769
} else {
773770
reply->status =
774771
debug::Status(debug::Status::kAlreadyExists, "Already attached to ancestor job.");

0 commit comments

Comments
 (0)