You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Koray Balci (JIRA)" <ji...@apache.org> on 2012/07/26 09:41:35 UTC
[jira] [Created] (CB-1138) Default logging level for file access
should not log file contents.
Koray Balci created CB-1138:
-------------------------------
Summary: Default logging level for file access should not log file contents.
Key: CB-1138
URL: https://issues.apache.org/jira/browse/CB-1138
Project: Apache Cordova
Issue Type: Bug
Components: iOS
Affects Versions: 2.0.0
Environment: iOS 5.0 targetting app, running in debug conf with XCode 4.3.2 (or 4.4)
Reporter: Koray Balci
Assignee: Shazron Abdullah
I am loading a huge text file (a few mb) using cordova file api and cordova is trying to log each line of the text file to the console in XCode.
I think default logging, even in debug mode, should have a saner level.
This was not the case in earlier versions. In default logging mode in 2.0.0 version, I cannot even stop XCode once I run my app!!
--
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
[jira] [Commented] (CB-1138) Default logging level for file access
should not log file contents.
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13432302#comment-13432302 ]
Shazron Abdullah commented on CB-1138:
--------------------------------------
Unfortunately subprojects cannot inherit macros from their parent projects.
I think I have a solution - adding a class function called setVerbose:(BOOL)verbose that by default is NO.
In your project file, in your AppDelegate::init, to turn it on, you would do:
[CDVPluginResult setVerbose:YES];
> Default logging level for file access should not log file contents.
> -------------------------------------------------------------------
>
> Key: CB-1138
> URL: https://issues.apache.org/jira/browse/CB-1138
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 2.0.0
> Environment: iOS 5.0 targetting app, running in debug conf with XCode 4.3.2 (or 4.4)
> Reporter: Koray Balci
> Assignee: Shazron Abdullah
> Labels: file, ios
> Fix For: 2.1.0
>
>
> I am loading a huge text file (a few mb) using cordova file api and cordova is trying to log each line of the text file to the console in XCode.
> I think default logging, even in debug mode, should have a saner level.
> This was not the case in earlier versions. In default logging mode in 2.0.0 version, I cannot even stop XCode once I run my app!!
> Also: same problem when getting all contacts. See: https://groups.google.com/forum/?fromgroups#!topic/phonegap/WTpeYf3Ji5k
--
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
[jira] [Resolved] (CB-1138) Default logging level for file access
should not log file contents.
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shazron Abdullah resolved CB-1138.
----------------------------------
Resolution: Fixed
Fix commit:
http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/2979d14d
Then, to turn it ON, add this in your AppDelegate.m's init function:
[CDVPluginResult setVerbose:YES];
By default, it is OFF.
> Default logging level for file access should not log file contents.
> -------------------------------------------------------------------
>
> Key: CB-1138
> URL: https://issues.apache.org/jira/browse/CB-1138
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 2.0.0
> Environment: iOS 5.0 targetting app, running in debug conf with XCode 4.3.2 (or 4.4)
> Reporter: Koray Balci
> Assignee: Shazron Abdullah
> Labels: file, ios
> Fix For: 2.1.0
>
>
> I am loading a huge text file (a few mb) using cordova file api and cordova is trying to log each line of the text file to the console in XCode.
> I think default logging, even in debug mode, should have a saner level.
> This was not the case in earlier versions. In default logging mode in 2.0.0 version, I cannot even stop XCode once I run my app!!
> Also: same problem when getting all contacts. See: https://groups.google.com/forum/?fromgroups#!topic/phonegap/WTpeYf3Ji5k
--
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
[jira] [Commented] (CB-1138) Default logging level for file access
should not log file contents.
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13427058#comment-13427058 ]
Shazron Abdullah commented on CB-1138:
--------------------------------------
Workaround for now is to set your scheme to Release. By default it is Debug which will be verbose like what you have seen.
> Default logging level for file access should not log file contents.
> -------------------------------------------------------------------
>
> Key: CB-1138
> URL: https://issues.apache.org/jira/browse/CB-1138
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 2.0.0
> Environment: iOS 5.0 targetting app, running in debug conf with XCode 4.3.2 (or 4.4)
> Reporter: Koray Balci
> Assignee: Shazron Abdullah
> Labels: file, ios
> Fix For: 2.1.0
>
>
> I am loading a huge text file (a few mb) using cordova file api and cordova is trying to log each line of the text file to the console in XCode.
> I think default logging, even in debug mode, should have a saner level.
> This was not the case in earlier versions. In default logging mode in 2.0.0 version, I cannot even stop XCode once I run my app!!
> Also: same problem when getting all contacts. See: https://groups.google.com/forum/?fromgroups#!topic/phonegap/WTpeYf3Ji5k
--
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
[jira] [Commented] (CB-1138) Default logging level for file access
should not log file contents.
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13427057#comment-13427057 ]
Shazron Abdullah commented on CB-1138:
--------------------------------------
We need a way for the project (not CordovaLib) to turn this ON. It should be OFF by default. Perhaps a Cordova.plist setting.
> Default logging level for file access should not log file contents.
> -------------------------------------------------------------------
>
> Key: CB-1138
> URL: https://issues.apache.org/jira/browse/CB-1138
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 2.0.0
> Environment: iOS 5.0 targetting app, running in debug conf with XCode 4.3.2 (or 4.4)
> Reporter: Koray Balci
> Assignee: Shazron Abdullah
> Labels: file, ios
> Fix For: 2.1.0
>
>
> I am loading a huge text file (a few mb) using cordova file api and cordova is trying to log each line of the text file to the console in XCode.
> I think default logging, even in debug mode, should have a saner level.
> This was not the case in earlier versions. In default logging mode in 2.0.0 version, I cannot even stop XCode once I run my app!!
> Also: same problem when getting all contacts. See: https://groups.google.com/forum/?fromgroups#!topic/phonegap/WTpeYf3Ji5k
--
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
[jira] [Updated] (CB-1138) Default logging level for file access
should not log file contents.
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shazron Abdullah updated CB-1138:
---------------------------------
Description:
I am loading a huge text file (a few mb) using cordova file api and cordova is trying to log each line of the text file to the console in XCode.
I think default logging, even in debug mode, should have a saner level.
This was not the case in earlier versions. In default logging mode in 2.0.0 version, I cannot even stop XCode once I run my app!!
Also: same problem when getting all contacts. See: https://groups.google.com/forum/?fromgroups#!topic/phonegap/WTpeYf3Ji5k
was:
I am loading a huge text file (a few mb) using cordova file api and cordova is trying to log each line of the text file to the console in XCode.
I think default logging, even in debug mode, should have a saner level.
This was not the case in earlier versions. In default logging mode in 2.0.0 version, I cannot even stop XCode once I run my app!!
> Default logging level for file access should not log file contents.
> -------------------------------------------------------------------
>
> Key: CB-1138
> URL: https://issues.apache.org/jira/browse/CB-1138
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 2.0.0
> Environment: iOS 5.0 targetting app, running in debug conf with XCode 4.3.2 (or 4.4)
> Reporter: Koray Balci
> Assignee: Shazron Abdullah
> Labels: file, ios
> Fix For: 2.1.0
>
>
> I am loading a huge text file (a few mb) using cordova file api and cordova is trying to log each line of the text file to the console in XCode.
> I think default logging, even in debug mode, should have a saner level.
> This was not the case in earlier versions. In default logging mode in 2.0.0 version, I cannot even stop XCode once I run my app!!
> Also: same problem when getting all contacts. See: https://groups.google.com/forum/?fromgroups#!topic/phonegap/WTpeYf3Ji5k
--
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
[jira] [Commented] (CB-1138) Default logging level for file access
should not log file contents.
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13427055#comment-13427055 ]
Shazron Abdullah commented on CB-1138:
--------------------------------------
The offending lines:
# https://github.com/apache/incubator-cordova-ios/blob/master/CordovaLib/Classes/CDVPluginResult.m#L122
# https://github.com/apache/incubator-cordova-ios/blob/master/CordovaLib/Classes/CDVPluginResult.m#L130
# https://github.com/apache/incubator-cordova-ios/blob/master/CordovaLib/Classes/CDVPluginResult.m#L139
> Default logging level for file access should not log file contents.
> -------------------------------------------------------------------
>
> Key: CB-1138
> URL: https://issues.apache.org/jira/browse/CB-1138
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 2.0.0
> Environment: iOS 5.0 targetting app, running in debug conf with XCode 4.3.2 (or 4.4)
> Reporter: Koray Balci
> Assignee: Shazron Abdullah
> Labels: file, ios
> Fix For: 2.1.0
>
>
> I am loading a huge text file (a few mb) using cordova file api and cordova is trying to log each line of the text file to the console in XCode.
> I think default logging, even in debug mode, should have a saner level.
> This was not the case in earlier versions. In default logging mode in 2.0.0 version, I cannot even stop XCode once I run my app!!
> Also: same problem when getting all contacts. See: https://groups.google.com/forum/?fromgroups#!topic/phonegap/WTpeYf3Ji5k
--
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
[jira] [Updated] (CB-1138) Default logging level for file access
should not log file contents.
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shazron Abdullah updated CB-1138:
---------------------------------
Fix Version/s: 2.1.0
> Default logging level for file access should not log file contents.
> -------------------------------------------------------------------
>
> Key: CB-1138
> URL: https://issues.apache.org/jira/browse/CB-1138
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 2.0.0
> Environment: iOS 5.0 targetting app, running in debug conf with XCode 4.3.2 (or 4.4)
> Reporter: Koray Balci
> Assignee: Shazron Abdullah
> Labels: file, ios
> Fix For: 2.1.0
>
>
> I am loading a huge text file (a few mb) using cordova file api and cordova is trying to log each line of the text file to the console in XCode.
> I think default logging, even in debug mode, should have a saner level.
> This was not the case in earlier versions. In default logging mode in 2.0.0 version, I cannot even stop XCode once I run my app!!
--
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