Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3DAF19EB6 for ; Tue, 1 May 2012 09:53:16 +0000 (UTC) Received: (qmail 44962 invoked by uid 500); 1 May 2012 09:53:16 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 44924 invoked by uid 500); 1 May 2012 09:53:16 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 44915 invoked by uid 99); 1 May 2012 09:53:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2012 09:53:15 +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, 01 May 2012 09:53:13 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 18ABD4290E8 for ; Tue, 1 May 2012 09:52:52 +0000 (UTC) Date: Tue, 1 May 2012 09:52:52 +0000 (UTC) From: "Shazron Abdullah (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <1361717218.12837.1335865972165.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <921152131.12828.1335865610521.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CB-613) Fix console.log not sprintf'ing input content 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/CB-613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shazron Abdullah updated CB-613: -------------------------------- Description: One thing that could be improved/fixed is that XCode console handling fails to do a sprintf on its input : console.log("Just fetched %s-item from endpoint=%o", itemCount, endpoint); Does output "Just fetched %s-item from endpoint=%o" in XCode while it could probably have the sprintf : "Just fetched 12-item from endpoint=[Object]" Not perfect but could be really useful for non-scalar vars. One probably correct sprintf implementation in javascript (underscore.string lib) : http://epeli.github.com/underscore.string/lib/underscore.string.js Regards, was: One thing that could be improved/fixed is that XCode console handling fails to do a sprintf on its input : console.log("Just fetched %s-item from endpoint=%o", itemCount, endpoint); Does output "Just fetched %s-item from endpoint=%o" in XCode while it could probably have the sprintf : "Just fetched 12-item from endpoint=[Object]" Not perfect but could be really useful for non-scalar vars. One probably correct sprintf implementation in javascript (underscore.string lib) : http://epeli.github.com/underscore.string/lib/underscore.string.js Regards, Issue Type: Improvement (was: Bug) > Fix console.log not sprintf'ing input content > --------------------------------------------- > > Key: CB-613 > URL: https://issues.apache.org/jira/browse/CB-613 > Project: Apache Callback > Issue Type: Improvement > Components: iOS > Reporter: Olivier Louvignes > Assignee: Shazron Abdullah > Priority: Minor > Labels: debugging > > One thing that could be improved/fixed is that XCode console handling fails to do a sprintf on its input : > console.log("Just fetched %s-item from endpoint=%o", itemCount, endpoint); > Does output "Just fetched %s-item from endpoint=%o" in XCode while it could probably have the sprintf : > "Just fetched 12-item from endpoint=[Object]" > Not perfect but could be really useful for non-scalar vars. > One probably correct sprintf implementation in javascript (underscore.string lib) : http://epeli.github.com/underscore.string/lib/underscore.string.js > Regards, -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira