简体   繁体   English

尽管日志级别为“ W”,Android Studio 1.2.2仍提供100,000行警告和错误

[英]Android Studio 1.2.2 giving 100,000 lines of warnings and errors despite Log level “W”

I have Googled this and found nothing. 我已经用Google搜索了,什么也没找到。 Nothing in the SO list of suggested Questions addresses this, either. 建议问题的SO列表中也没有任何解决此问题的方法。

Even though I have "W"arnings selected as Log Level, I get hundreds of thousands of lines like this, making it very hard or impossible to find MY Log.w output and RTEs. 即使我将“ W”警告选择为“日志级别”,我仍然得到数十万行这样的信息,这使得找到我的Log.w输出和RTE变得非常困难或不可能。 I don't know how I turned it on, but is there any way to turn off? 我不知道如何打开它,但是有什么办法可以关闭它?

pertyList handle: 0x242, c.getInt(column) = 1431483455
09-16 12:25:06.458   32575-1703/? E/MtpServer﹕ MtpServer::run mFD: 61
09-16 12:25:06.462   32575-1703/? E/MtpServer﹕ MtpServer::run mFD: 61
09-16 12:25:06.464   32575-1703/? E/MtpServer﹕ MtpServer::run mFD: 61
09-16 12:25:06.465   32575-1703/? E/MtpServer﹕ MtpServer::run mFD: 61
09-16 12:25:06.467   32575-1703/? E/MtpServer﹕ MtpServer::run mFD: 61
09-16 12:25:06.468   32575-1703/? E/MtpDatabase﹕ createObjectQuery: mSubDirectoriesWhere = null
09-16 12:25:06.470   32575-1703/? E/MtpServer﹕ MtpServer::run mFD: 61
09-16 12:25:06.472   32575-1703/? E/MtpServer﹕ MtpServer::run mFD: 61
09-16 12:25:06.474   32575-1703/? E/MtpServer﹕ MtpServer::run mFD: 61
09-16 12:25:06.475   32575-1703/? E/MtpServer﹕ MtpServer::run mFD: 61
09-16 12:25:06.478   32575-1703/? E/MtpServer﹕ MtpServer::run mFD: 61
09-16 12:25:06.478   32575-1703/? E/MtpDatabase﹕ createObjectQuery: mSubDirectoriesWhere = null

Then there are these "W"arnings: 然后是这些“ W”警告:

09-16 12:34:19.084      175-175/? W/ADB_SERVICES﹕ read_meminfo() mem_free=33892
09-16 12:34:19.085      175-175/? W/ADB_SERVICES﹕ create_subprocess() ret_fd=19 pid=4098
09-16 12:34:19.085      175-175/? W/ADB_SERVICES﹕ LS(165102): bound to 'shell:cat /proc/14320/stat' via 19
09-16 12:34:19.089    4098-4098/? W/ADB_SERVICES﹕ adb: unable to open /proc/4098/oom_adj
09-16 12:34:19.103      175-175/? W/ADB_SERVICES﹕ entered. LS(165102) fd=19
09-16 12:34:19.120      175-175/? W/ADB_SERVICES﹕ create_local_service_socket() name=shell:cat /proc/stat
09-16 12:34:19.120      175-175/? W/ADB_SERVICES﹕ service_to_fd() name=shell:cat /proc/stat
09-16 12:34:19.120      175-175/? W/ADB_SERVICES﹕ read_meminfo() mem_free=33884
09-16 12:34:19.121      175-175/? W/ADB_SERVICES﹕ create_subprocess() ret_fd=19 pid=4099
09-16 12:34:19.121      175-175/? W/ADB_SERVICES﹕ LS(165103): bound to 'shell:cat /proc/stat' via 19
09-16 12:34:19.122    4099-4099/? W/ADB_SERVICES﹕ adb: unable to open /proc/4099/oom_adj
09-16 12:34:19.129      175-175/? W/ADB_SERVICES﹕ entered. LS(165103) fd=19

I'm clueless about how to live with this. 我对如何忍受这一点一无所知。 Help turn off? 帮助关闭?

Usually but not always "No debuggable application" will be showing in the dropdown where my app's name should be listed. 通常但并非总是如此,下拉列表中将显示“没有可调试的应用程序”,其中应列出我的应用程序名称。 Is that connected to this? 与此有关吗?

EDIT: I am dealing with a 140,000 record SQLite database. 编辑:我正在处理140,000记录SQLite数据库。

EDIT: Here's pic of IDE: 编辑:这是IDE的图片:

在此处输入图片说明

Make sure you are filtering the log for your app ONLY. 确保仅过滤应用程序的日志。

You can do the following. 您可以执行以下操作。

  1. Click Edit Filter Configuration in your logcat next to the search box 在搜索框旁边的日志中,单击“编辑过滤器配置”。

在此处输入图片说明

  1. Add your app name (usually starts with com.) and press OK. 添加您的应用名称(通常以com开头),然后按OK。 (options available) (可用选项)

在此处输入图片说明

It should now be filtering your app's behavior only. 现在,它应该只过滤应用程序的行为。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM