604560a8f78d593e0cc998b26efd4c060fe34a40 max Tue May 9 04:54:16 2023 -0700 tiny bit more UDC debugging output, no redmine diff --git src/lib/udc.c src/lib/udc.c index 164cecc..df93499 100644 --- src/lib/udc.c +++ src/lib/udc.c @@ -2254,30 +2254,31 @@ { struct stat status; int ret = stat(udc->url, &status); if (ret < 0) return 0; else return status.st_mtime; } return udc->updateTime; } off_t udcFileSize(char *url) /* fetch file size from given URL or local path * returns -1 if not found. */ { +verbose(4, "getting file size for %s", url); if (udcIsLocal(url)) return fileSize(url); // don't go to the network if we can avoid it off_t cacheSize = udcSizeFromCache(url, NULL); if (cacheSize!=-1) return cacheSize; off_t ret = -1; struct udcRemoteFileInfo info; if (startsWith("http://",url) || startsWith("https://",url) || udcIsResolvable(url) ) { if (udcInfoViaHttp(url, &info)) ret = info.size;