limit url debug output to 140 characters
This commit is contained in:
parent
e205f0f99e
commit
9b85ae106b
|
@ -47,6 +47,7 @@
|
||||||
#include "utils/talloc.h"
|
#include "utils/talloc.h"
|
||||||
#include "utils/utils.h"
|
#include "utils/utils.h"
|
||||||
|
|
||||||
|
#define URL_FMT_SPC "%.140s"
|
||||||
|
|
||||||
const char * const content_status_name[] = {
|
const char * const content_status_name[] = {
|
||||||
"LOADING",
|
"LOADING",
|
||||||
|
@ -82,7 +83,8 @@ nserror content__init(struct content *c, const content_handler *handler,
|
||||||
struct content_user *user_sentinel;
|
struct content_user *user_sentinel;
|
||||||
nserror error;
|
nserror error;
|
||||||
|
|
||||||
LOG(("url %s -> %p", nsurl_access(llcache_handle_get_url(llcache)), c));
|
LOG(("url "URL_FMT_SPC" -> %p",
|
||||||
|
nsurl_access(llcache_handle_get_url(llcache)), c));
|
||||||
|
|
||||||
user_sentinel = talloc(c, struct content_user);
|
user_sentinel = talloc(c, struct content_user);
|
||||||
if (user_sentinel == NULL) {
|
if (user_sentinel == NULL) {
|
||||||
|
@ -274,7 +276,7 @@ void content_convert(struct content *c)
|
||||||
if (c->locked == true)
|
if (c->locked == true)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
LOG(("content %s (%p)",
|
LOG(("content "URL_FMT_SPC" (%p)",
|
||||||
nsurl_access(llcache_handle_get_url(c->llcache)), c));
|
nsurl_access(llcache_handle_get_url(c->llcache)), c));
|
||||||
|
|
||||||
if (c->handler->data_complete != NULL) {
|
if (c->handler->data_complete != NULL) {
|
||||||
|
@ -550,7 +552,7 @@ bool content_add_user(struct content *c,
|
||||||
{
|
{
|
||||||
struct content_user *user;
|
struct content_user *user;
|
||||||
|
|
||||||
LOG(("content %s (%p), user %p %p",
|
LOG(("content "URL_FMT_SPC" (%p), user %p %p",
|
||||||
nsurl_access(llcache_handle_get_url(c->llcache)),
|
nsurl_access(llcache_handle_get_url(c->llcache)),
|
||||||
c, callback, pw));
|
c, callback, pw));
|
||||||
user = talloc(c, struct content_user);
|
user = talloc(c, struct content_user);
|
||||||
|
@ -578,7 +580,7 @@ void content_remove_user(struct content *c,
|
||||||
void *pw)
|
void *pw)
|
||||||
{
|
{
|
||||||
struct content_user *user, *next;
|
struct content_user *user, *next;
|
||||||
LOG(("content %s (%p), user %p %p",
|
LOG(("content "URL_FMT_SPC" (%p), user %p %p",
|
||||||
nsurl_access(llcache_handle_get_url(c->llcache)), c,
|
nsurl_access(llcache_handle_get_url(c->llcache)), c,
|
||||||
callback, pw));
|
callback, pw));
|
||||||
|
|
||||||
|
|
|
@ -154,7 +154,7 @@ static bool fetch_data_process(struct fetch_data_context *c)
|
||||||
* data must still be there.
|
* data must still be there.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
LOG(("*** Processing %s", c->url));
|
LOG(("url: %.140s", c->url));
|
||||||
|
|
||||||
if (strlen(c->url) < 6) {
|
if (strlen(c->url) < 6) {
|
||||||
/* 6 is the minimum possible length (data:,) */
|
/* 6 is the minimum possible length (data:,) */
|
||||||
|
|
Loading…
Reference in New Issue