Skip to content

Commit

Permalink
Updating default spew location for Android
Browse files Browse the repository at this point in the history
  • Loading branch information
tmbrbr committed Dec 10, 2024
1 parent 0002266 commit 1203dfe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/util/StructuredSpewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const StructuredSpewer::NameArray StructuredSpewer::names_ = {
# if defined(_WIN32)
# define DEFAULT_SPEW_DIRECTORY "."
# elif defined(__ANDROID__)
# define DEFAULT_SPEW_DIRECTORY "/data/local/tmp"
# define DEFAULT_SPEW_DIRECTORY "/sdcard/Download"
# else
# define DEFAULT_SPEW_DIRECTORY "."
# endif
Expand Down
4 changes: 4 additions & 0 deletions js/src/util/StructuredSpewer.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,13 @@ class StructuredSpewer {
spewingEnabled_(0),
json_(mozilla::Nothing()),
selectedChannel_() {
#if defined(__ANDROID__)
parseSpewFlags("TaintFlowSpewer,AtStartup");
#else
if (getenv("SPEW")) {
parseSpewFlags(getenv("SPEW"));
}
#endif
}

~StructuredSpewer() {
Expand Down

0 comments on commit 1203dfe

Please sign in to comment.