Commit e58e8f7c authored by Rafael Monnerat's avatar Rafael Monnerat

SlapTool: Store error_log on memcached

parent 0afb9886
...@@ -1070,17 +1070,21 @@ class SlapTool(BaseTool): ...@@ -1070,17 +1070,21 @@ class SlapTool(BaseTool):
@convertToREST @convertToREST
def _softwareInstanceError(self, computer_id, def _softwareInstanceError(self, computer_id,
computer_partition_id, error_log): computer_partition_id, error_log=""):
""" """
Add an error for the software Instance Workflow Add an error for the software Instance Workflow
""" """
if error_log is None:
error_log = ""
instance = self._getSoftwareInstanceForComputerPartition( instance = self._getSoftwareInstanceForComputerPartition(
computer_id, computer_id,
computer_partition_id) computer_partition_id)
user = self.getPortalObject().portal_membership.getAuthenticatedMember()\ user = self.getPortalObject().portal_membership.getAuthenticatedMember()\
.getUserName() .getUserName()
self._logAccess(user, instance.getReference(), self._logAccess(user, instance,
'#error while instanciating') '#error while instanciating: %s' % error_log[-80:])
#return instance.reportComputerPartitionError() #return instance.reportComputerPartitionError()
@convertToREST @convertToREST
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment