You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tephra.apache.org by anew <gi...@git.apache.org> on 2018/05/01 19:06:51 UTC
[GitHub] incubator-tephra pull request #74: TEPHRA-266 Identify log messages when mul...
Github user anew commented on a diff in the pull request:
https://github.com/apache/incubator-tephra/pull/74#discussion_r185305932
--- Diff: tephra-core/src/main/java/org/apache/tephra/coprocessor/TransactionStateCache.java ---
@@ -184,4 +185,14 @@ private void refreshState() throws IOException {
public TransactionVisibilityState getLatestState() {
return latestState;
}
+
+ protected void setId(@Nullable String id) {
+ if (id != null) {
+ this.logPrefix = "[" + id + "] ";
+ }
+ }
+
+ private String prefixLog(String message) {
--- End diff --
I was not aware of that. I think this is not logged very frequently, so it's ok.
---