Skip to content

Commit

Permalink
add debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
liyaqin1 committed Nov 17, 2023
1 parent 9c4e2d8 commit 9cde65c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions deploy-agent/deployd/types/deploy_goal.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def __init__(self, jsonValue=None):
self.envId = None
self.envName = None
self.stageName = None
self.stageType = None
self.deployStage = None
self.build = None
self.deployAlias = None
Expand All @@ -34,6 +35,7 @@ def __init__(self, jsonValue=None):
self.envId = jsonValue.get('envId')
self.envName = jsonValue.get('envName')
self.stageName = jsonValue.get('stageName')
self.stageName = jsonValue.get('stageType')
# TODO: Only used for migration, should remove later
if isinstance(jsonValue.get('deployStage'), int):
self.deployStage = DeployStage._VALUES_TO_NAMES[jsonValue.get('deployStage')]
Expand All @@ -54,6 +56,7 @@ def __key(self):
self.envId,
self.envName,
self.stageName,
self.stageType,
self.deployStage,
self.build,
self.deployAlias,
Expand All @@ -76,10 +79,10 @@ def __ne__(self, other):
and self.__key() == other.__key())

def __str__(self):
return "DeployGoal(deployId={}, envId={}, envName={}, stageName={}, " \
return "DeployGoal(deployId={}, envId={}, envName={}, stageName={}, stageType={}, " \
"deployStage={}, build={}, deployAlias={}, agentConfig={}," \
"scriptVariables={}, firstDeploy={}, isDocker={})".format(self.deployId, self.envId, self.envName,
self.stageName, self.deployStage,
self.stageName, self.stageType, self.deployStage,
self.build, self.deployAlias,
self.config, self.scriptVariables,
self.firstDeploy, self.isDocker)
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,7 @@ public PingResponseBean generateInstallResponse(GoalAnalyst.InstallCandidate ins
goal.setEnvId(envBean.getEnv_id());
goal.setEnvName(envBean.getEnv_name());
goal.setStageName(envBean.getStage_name());
LOG.debug("stage type: {}", envBean.getStage_type());
goal.setStageType(envBean.getStage_type());
goal.setIsDocker(envBean.getIs_docker());

Expand Down

0 comments on commit 9cde65c

Please sign in to comment.