Skip to content

Commit

Permalink
fix studio custom data logging
Browse files Browse the repository at this point in the history
Change-Id: Iccbd9a1f82c63cd34e335920c3f87173da30e580
  • Loading branch information
niraj gupta committed Jan 18, 2024
1 parent fc2498f commit cc35f0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloudvision/cvlib/studio.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ def retrieve(self, studioId: str = "", path: List[str] = [], searchKey: str = ""
data = self.context.Get(storagePath, [], "cvp")
except InvalidContextException as e:
self.context.logger.info(
self, "custom data not found in build: {}".format(e.message))
self.context, "custom data not found in build: {}".format(e.message))
# get data from mainline if data is not generated during build.
if not data:
self.context.logger.info(self, "reading custom data from mainline.")
self.context.logger.info(self.context, "reading custom data from mainline.")
storagePath = self.__getMainlinePath(studioId, path, searchKey)
data = self.context.Get(storagePath, [], "cvp")
return ''.join(data[k] for k in
Expand Down

0 comments on commit cc35f0b

Please sign in to comment.