Permalink
Browse files

better logging

  • Loading branch information...
1 parent a368ad5 commit 319985ec9d6844f12aabd586a1e9f6c83deec94b @czue czue committed May 11, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 casexml/apps/case/xml/generator.py
@@ -139,7 +139,8 @@ def add_referrals(self, element):
def add_indices(self, element):
# intentionally a no-op
if self.case.indices:
- logging.warning("Tried to add indices to version 1 CaseXML. This is not supported")
+ logging.warning("Tried to add indices to version 1 CaseXML restore. This is not supported. "
+ "The case id is %s, domain %s." % (self.case.get_id, self.case.domain))
class V2CaseXMLGenerator(CaseXMLGeneratorBase):
@@ -172,7 +173,8 @@ def add_custom_properties(self, element):
def add_referrals(self, element):
# intentionally a no-op
if self.case.referrals:
- logging.warning("Tried to add referrals to version 2 CaseXML. This is not supported")
+ logging.warning("Tried to add referrals to version 2 CaseXML restore. This is not supported. "
+ "The case id is %s, domain %s." % (self.case.get_id, self.case.domain))
def add_indices(self, element):
if self.case.indices:

0 comments on commit 319985e

Please sign in to comment.