Skip to content

Commit 2377aec

Browse files
addaleaxtargos
authored andcommitted
src: fix debugging for multiple categories
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]>
1 parent e7776c6 commit 2377aec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/env.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ void Environment::set_debug_categories(const std::string& cats, bool enabled) {
537537
if (comma_pos == std::string::npos)
538538
break;
539539
// Use everything after the `,` as the list for the next iteration.
540-
debug_categories = debug_categories.substr(comma_pos);
540+
debug_categories = debug_categories.substr(comma_pos + 1);
541541
}
542542
}
543543

0 commit comments

Comments
 (0)