jakobcornell / dubois-traffic-puzzle

traffic puzzle game for Android
0 stars 0 forks source link

Identical error messages in multiple files hide the source of the error #5

Closed KenSStanley closed 7 years ago

KenSStanley commented 7 years ago

Multiple identical error messages "An unexpected error occurred" make the error messages less useful than they could be.

jakobcornell commented 7 years ago

I decided to do things this way to hide debugging information from the user—indeed this can end up being counterproductive. Do note however that a stacktrace is available through the logging system (I wager Android Studio has some convenient interface to this). See the readme for more info on that.

KenSStanley commented 7 years ago

That makes sense. Thanks for reminding me about logging, Unfortunately, the log system seems to be noisy. I looked right now, hours after I most recently intentionally ran anything on the app. I see messages like this added several times a minute, even at the error level (the only higher level is the assert level):

02-07 14:20:20.631 239-239/? E/Parcel: Reading a NULL string not supported here. 02-07 14:20:20.631 239-239/? E/Parcel: Reading a NULL string not supported here. 02-07 14:20:20.651 8935-8935/? E/PhoneListener: Could not retrieve CellInfo?!

Ken

On Tue, Feb 7, 2017 at 2:12 PM, Jakob Cornell notifications@github.com wrote:

I decided to do things this way to hide debugging information from the user—indeed this can end up being counterproductive. Do note however that a stacktrace is available through the logging system (I wager Android Studio has some convenient interface to this). See the readme for more info on that.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jakobcornell/dubois-traffic-puzzle/issues/5#issuecomment-278108608, or mute the thread https://github.com/notifications/unsubscribe-auth/AYbSBFuCQw5pP5S8qIXOuyE-9JQriUTyks5raMIMgaJpZM4L5ul2 .

-- Director, Du Bois Project of Oberlin Cell: 440 240 4945

jakobcornell commented 7 years ago

Yeah, it is quite noisy, since it aggregates info and errors from all apps and the system. Filtering the logs by tag helps a lot, and should be sufficient to pare down the entries. If you want to look into this, the tag for the app is RushHour (again, the readme has a bit more info on this).