Skip to content

Commit

Permalink
try to debug streetcomplete#3290
Browse files Browse the repository at this point in the history
  • Loading branch information
mnalis committed Jan 12, 2022
1 parent b632b57 commit d21e1f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ import javax.inject.Singleton
createdElementsCount.ways,
createdElementsCount.relations
)
Log.d("ElementEditsController", "Added edit for ${edit.questType.javaClass.simpleName}") /* debug #3290 /mn/ */
}
onAddedEdit(edit)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ import kotlin.collections.ArrayList
* downloading/updating data. See issue #2876 */
val e = getOsmElement(q)
if (e == null || q.osmElementQuestType.isApplicableTo(e) == false) {
if (e == null) Log.d(TAG, "Element ${q.elementType.name}#${q.elementId} is null!") else Log.d(TAG, "Element ${e.type.name}#${e.id} v ${e.version} is not applicable to ${q.questTypeName}!") /* #3290 debug /mn/ */
/* the quest should then just be removed immediately, otherwise it looks like a bug
(can't solve quest, it won't go away), see #3588 */
osmQuestController.delete(OsmQuestKey(q.elementType, q.elementId, q.questTypeName))
Expand Down

0 comments on commit d21e1f1

Please sign in to comment.