Skip to content

Commit

Permalink
change to line_number
Browse files Browse the repository at this point in the history
Signed-off-by: wmqwxb <[email protected]>
  • Loading branch information
wmqwxb committed Nov 29, 2023
1 parent 10e46ac commit 090adf0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/fedai/fate/board/global/Dict.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public class Dict {
static public final String COMPONENT_DEPENDENCIES = "dependencies";

static public final String SSH_CONFIG_FILE = "ssh_config_file";
static public final String LOG_LINE_NUM = "lineNum";
static public final String LOG_LINE_NUM = "line_num";
static public final String LOG_CONTENT = "content";
static public final String JOB_PROCESS = "process";
static public final String JOB_DURATION = "duration";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ private void logCat(Session session, String jobId, String role, String partyId,
for (int i = 0; i < jsonArray.size(); i++) {
JSONObject logData = (JSONObject) jsonArray.get(i);
String content = logData.get(Dict.LOG_CONTENT) == null ? "" : (String) logData.get(Dict.LOG_CONTENT);
String lineNum = logData.get(Dict.LOG_CONTENT) == null ? "" : (String) logData.get(Dict.LOG_CONTENT);
String lineNum = logData.get(Dict.LOG_LINE_NUM) == null ? "" : (String) logData.get(Dict.LOG_LINE_NUM);
LogContentResponse.LogContent logContent = new LogContentResponse.LogContent();
logContent.setContent(content);
logContent.setLineNum(lineNum);
Expand Down

0 comments on commit 090adf0

Please sign in to comment.