Skip to content

Commit 5198f55

Browse files
committed
feat(task): enhance log details with source and target connection information
1 parent 2753f55 commit 5198f55

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

core/sling/task.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,19 @@ func (t *TaskExecution) setLogDetails() {
159159
}
160160
rowCount := t.GetCount()
161161
rowRate, byteRate := t.GetRate(1)
162+
bytes, _ := t.GetBytes()
162163
os.Setenv("SLING_LOG_DETAILS", g.Marshal(g.M(
163164
"run_file", t.Config.Env["SLING_CONFIG_PATH"],
164165
"run_type", "replication",
166+
"source_name", t.Config.SrcConn.Name,
167+
"source_type", t.Config.SrcConn.Type,
168+
"target_name", t.Config.TgtConn.Name,
169+
"target_type", t.Config.TgtConn.Type,
165170
"stream_name", t.Config.StreamName,
166171
"object_name", t.getTargetObjectValue(),
167172
"row_count", rowCount,
168173
"row_rate", rowRate,
174+
"byte_count", bytes,
169175
"byte_rate", byteRate,
170176
"status", t.Status,
171177
"duration", duration,

0 commit comments

Comments
 (0)