Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1D2FD47A7 for ; Tue, 31 May 2011 15:23:33 +0000 (UTC) Received: (qmail 19035 invoked by uid 500); 31 May 2011 15:23:32 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 18993 invoked by uid 500); 31 May 2011 15:23:32 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 18920 invoked by uid 500); 31 May 2011 15:23:32 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 18901 invoked by uid 99); 31 May 2011 15:23:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 May 2011 15:23:32 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 May 2011 15:23:28 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 29200EBF42 for ; Tue, 31 May 2011 15:22:48 +0000 (UTC) Date: Tue, 31 May 2011 15:22:48 +0000 (UTC) From: "Chinna Rao Lalam (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <1558613000.56271.1306855368165.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1128844952.38745.1306229087368.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HIVE-2180) Log message improvement and use StringBuilder for constructing messages instead of String MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-2180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chinna Rao Lalam updated HIVE-2180: ----------------------------------- Attachment: HIVE-2180.patch > Log message improvement and use StringBuilder for constructing messages instead of String > ----------------------------------------------------------------------------------------- > > Key: HIVE-2180 > URL: https://issues.apache.org/jira/browse/HIVE-2180 > Project: Hive > Issue Type: Bug > Components: Query Processor > Affects Versions: 0.5.0, 0.8.0 > Environment: Hadoop 0.20.1, Hive0.8.0 and SUSE Linux Enterprise Server 10 SP2 (i586) - Kernel 2.6.16.60-0.21-smp (5) > Reporter: Chinna Rao Lalam > Assignee: Chinna Rao Lalam > Priority: Minor > Attachments: HIVE-2180.patch > > > Need to properly format/present the error messages for better traceability. > For example in classes like ScriptOperator, FetchOperator, PartitionPruner etc, > {noformat} > LG.info("Executing " + Arrays.asList(wrappedCmdArgs)); > LOG.info("tablename="+ hconf.get(HiveConf.ConfVars.HIVETABLENAME.varname)); > {noformat} > The two lines which are being logged separately can be clubbed using string builder and logged at once like > {noformat} > StringBuilder sb = new StringBuilder("Executing "); > sb.append(Arrays.asList(wrappedCmdArgs)); > sb.append("\ntablename="); > sb.append(hconf.get(HiveConf.ConfVars.HIVETABLENAME.varname)); > LOG.info(sb.toString()); > {noformat} -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira