简体   繁体   中英

Android LogCat continuously repeating a warning: “Addition of standard header … not allowed”

I've been developing an Android application using version 2.3.3 (API 10). The application simply uses Flickr Java API (flickrj) to make certain search queries based on tags, date, geographical info etc. and displays the search result photos to the user. I have been working on it for 2 weeks and using my HTC Sensation to debug it via the USB debugger. Today, I somehow started to get an annoying warning message that loops over and over in my LogCat. It is as follows:

11-30 00:31:43.083: I/org.restlet(22899): Couldn't find the mandatory "Host" HTTP header.
11-30 00:31:43.143: D/com.fd.httpd(22899): sdcard phone type != 1
11-30 00:31:43.143: D/com.fd.httpd(22899): emmc phone type != 1
11-30 00:31:43.163: I/LogService(22899): 2011-11-30 00:31:43    127.0.0.1   -       127.0.0.1   8182    GET /info/  -   200 1143    0   52  http://null -   -
11-30 00:31:43.163: I/Server(22899): Addition of the standard header "pragma" is discouraged as a future versions of the Restlet API will directly support it.
11-30 00:31:43.163: W/Server(22899): Addition of the standard header "cache-control" is not allowed. Please use the equivalent property in the Restlet API.
11-30 00:31:43.163: W/Server(22899): Addition of the standard header "expires" is not allowed. Please use the equivalent property in the Restlet API.

When I shut down or restart my phone, the warning messages are no longer looped. But when I begin to play around with my application using the USB debugger, the warnings begin to show up again after a while. I can keep on developing/debugging my application without a problem, but since these warnings are crowding the LogCat window, it becomes very difficult to trace what's going on.

I've checked to see if anyone else had the same problem and the only clue I've got is to check the pid number repeated in the warnings: 22899. This pid no belongs to the package "com.fd.httpd" (HTC Sync application) which is required for me to setup the USB driver for debugging with a PC. But I have no idea why HTC Sync is causing an error.

I would be glad if anyone could share their ideas about the reason and a possible solution. Thank you for your time.

在LogCat中设置过滤器,例如在所有应用程序日志中使用特殊标记,并对其进行过滤,因此系统日志不会使您混乱

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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