Skip to content

Commit 5c796eb

Browse files
dulinrileyfacebook-github-bot
authored andcommitted
Add warning message about missing etdump data
Summary: When there's no data for ETDump to write out, make a warning message for the user. Info level was chosen because there is no warning level, just Info and Error. Differential Revision: D52221886
1 parent 0ba14a1 commit 5c796eb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

extension/pybindings/pybindings.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,11 @@ struct PyModule final {
550550
fwrite((uint8_t*)result.buf, 1, result.size, f);
551551
fclose(f);
552552
free(result.buf);
553+
} else {
554+
ET_LOG(
555+
Info,
556+
"No etdump data found, try rebuilding with "
557+
"buck2 run -c executorch.event_tracer_enabled=true");
553558
}
554559
}
555560

0 commit comments

Comments
 (0)