Skip to content

Commit

Permalink
src: fix debugging for multiple categories
Browse files Browse the repository at this point in the history
Fix parsing of e.g. `NODE_DEBUG_NATIVE=worker,messaging`.

PR-URL: #21422
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
addaleax authored and targos committed Jun 22, 2018
1 parent e7776c6 commit 2377aec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/env.cc
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ void Environment::set_debug_categories(const std::string& cats, bool enabled) {
if (comma_pos == std::string::npos)
break;
// Use everything after the `,` as the list for the next iteration.
debug_categories = debug_categories.substr(comma_pos);
debug_categories = debug_categories.substr(comma_pos + 1);
}
}

Expand Down

0 comments on commit 2377aec

Please sign in to comment.