mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 21:35:47 +03:00
ownCloud: some log cleanups.
This commit is contained in:
parent
ee228cfff4
commit
e4c0fb90dd
1 changed files with 6 additions and 5 deletions
|
@ -432,7 +432,7 @@ static void post_request_hook(ne_request *req, void *userdata, const ne_status *
|
||||||
/* successful request */
|
/* successful request */
|
||||||
set_cookie_header = ne_get_response_header( req, "Set-Cookie" );
|
set_cookie_header = ne_get_response_header( req, "Set-Cookie" );
|
||||||
if( set_cookie_header ) {
|
if( set_cookie_header ) {
|
||||||
DEBUG_WEBDAV("===================> Set-Cookie: >%s<", set_cookie_header);
|
DEBUG_WEBDAV(" Set-Cookie found: %s", set_cookie_header);
|
||||||
/* try to find a ', ' sequence which is the separator of neon if multiple Set-Cookie
|
/* try to find a ', ' sequence which is the separator of neon if multiple Set-Cookie
|
||||||
* headers are there.
|
* headers are there.
|
||||||
* The following code parses a string like this:
|
* The following code parses a string like this:
|
||||||
|
@ -515,6 +515,7 @@ static void request_created_hook(ne_request *req, void *userdata,
|
||||||
{
|
{
|
||||||
(void) userdata;
|
(void) userdata;
|
||||||
(void) method;
|
(void) method;
|
||||||
|
(void) requri;
|
||||||
|
|
||||||
if( !req ) return;
|
if( !req ) return;
|
||||||
|
|
||||||
|
@ -975,7 +976,6 @@ static int owncloud_stat(const char *uri, csync_vio_file_stat_t *buf) {
|
||||||
|
|
||||||
curi = _cleanPath( uri );
|
curi = _cleanPath( uri );
|
||||||
|
|
||||||
DEBUG_WEBDAV("I have no stat cache, call propfind for %s", curi );
|
|
||||||
fetchCtx->list = NULL;
|
fetchCtx->list = NULL;
|
||||||
fetchCtx->target = curi;
|
fetchCtx->target = curi;
|
||||||
fetchCtx->include_target = 1;
|
fetchCtx->include_target = 1;
|
||||||
|
@ -1046,9 +1046,10 @@ static int owncloud_stat(const char *uri, csync_vio_file_stat_t *buf) {
|
||||||
|
|
||||||
free_fetchCtx( fetchCtx );
|
free_fetchCtx( fetchCtx );
|
||||||
}
|
}
|
||||||
}
|
DEBUG_WEBDAV("STAT result from propfind: %s, md5: %s", buf->name ? buf->name:"NULL",
|
||||||
DEBUG_WEBDAV("STAT result: %s, md5: %s", buf->name ? buf->name:"NULL",
|
|
||||||
buf->md5 ? buf->md5 : "NULL" );
|
buf->md5 ? buf->md5 : "NULL" );
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1234,7 +1235,7 @@ static const char* owncloud_file_id( const char *path )
|
||||||
cbuf = c_strdup(header);
|
cbuf = c_strdup(header);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
DEBUG_WEBDAV("Get file ID for %s: %s", path, buf ? buf:"<null>");
|
DEBUG_WEBDAV("Get file ID for %s: %s", path, cbuf ? cbuf:"<null>");
|
||||||
if( fs ) csync_vio_file_stat_destroy(fs);
|
if( fs ) csync_vio_file_stat_destroy(fs);
|
||||||
ne_request_destroy(req);
|
ne_request_destroy(req);
|
||||||
SAFE_FREE(uri);
|
SAFE_FREE(uri);
|
||||||
|
|
Loading…
Reference in a new issue