From dev-return-2119-archive-asf-public=cust-asf.ponee.io@tephra.incubator.apache.org Tue May 1 21:06:56 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 24B46180645 for ; Tue, 1 May 2018 21:06:55 +0200 (CEST) Received: (qmail 65657 invoked by uid 500); 1 May 2018 19:06:55 -0000 Mailing-List: contact dev-help@tephra.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tephra.incubator.apache.org Delivered-To: mailing list dev@tephra.incubator.apache.org Received: (qmail 65640 invoked by uid 99); 1 May 2018 19:06:54 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2018 19:06:54 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 15323C185B for ; Tue, 1 May 2018 19:06:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4 X-Spam-Level: X-Spam-Status: No, score=-4 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id yQDTCye_Tb2f for ; Tue, 1 May 2018 19:06:53 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 86FF05F2C2 for ; Tue, 1 May 2018 19:06:52 +0000 (UTC) Received: (qmail 65617 invoked by uid 99); 1 May 2018 19:06:51 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2018 19:06:51 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id B5D21E09E9; Tue, 1 May 2018 19:06:51 +0000 (UTC) From: anew To: dev@tephra.incubator.apache.org Reply-To: dev@tephra.incubator.apache.org References: In-Reply-To: Subject: [GitHub] incubator-tephra pull request #74: TEPHRA-266 Identify log messages when mul... Content-Type: text/plain Message-Id: <20180501190651.B5D21E09E9@git1-us-west.apache.org> Date: Tue, 1 May 2018 19:06:51 +0000 (UTC) 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. ---