Skip to content

Commit

Permalink
some tiny fixes about logging
Browse files Browse the repository at this point in the history
  • Loading branch information
linzhou-db committed Oct 11, 2024
1 parent c2ca271 commit cb8da59
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ class DeltaSharingRestClient(
logInfo(
s"Making paginated queryTable from version $startingVersion requests for table " +
s"${table.share}.${table.schema}.${table.name} with maxFiles=$maxFilesPerReq, " +
s"for query($dsQueryId)."
getDsQueryIdForLogging
)
val (version, respondedFormat, lines, _) = getFilesByPage(table, target, request)
(version, respondedFormat, lines)
Expand Down Expand Up @@ -651,7 +651,7 @@ class DeltaSharingRestClient(
logInfo(
s"Making paginated queryTableChanges requests for table " +
s"${table.share}.${table.schema}.${table.name} with maxFiles=$maxFilesPerReq, " +
s"for query($dsQueryId)."
getDsQueryIdForLogging
)
getCDFFilesByPage(target)
} else {
Expand Down Expand Up @@ -1032,7 +1032,7 @@ class DeltaSharingRestClient(
case None =>
logWarning(s"Client sets ${DELTA_SHARING_INCLUDE_END_STREAM_ACTION}=true in the" +
s" header, but server didn't respond with the header(${capabilities}), " +
s"for query($dsQueryId)."
getDsQueryIdForLogging
)
}
}
Expand Down Expand Up @@ -1161,7 +1161,7 @@ class DeltaSharingRestClient(
}
} catch {
case e: org.apache.http.ConnectionClosedException =>
val error = s"Request to delta sharing server failed for query($dsQueryId) " +
val error = s"Request to delta sharing server failed$getDsQueryIdForLogging " +
s"due to ${e}."
logError(error)
lineBuffer += error
Expand Down

0 comments on commit cb8da59

Please sign in to comment.