Author: cazfi
Date: Tue Jul  5 09:04:36 2016
New Revision: 33169

URL: http://svn.gna.org/viewcvs/freeciv?rev=33169&view=rev
Log:
Added some debug logging for modpack installer.

See patch #7376

Modified:
    branches/S2_6/tools/download.c

Modified: branches/S2_6/tools/download.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/tools/download.c?rev=33169&r1=33168&r2=33169&view=diff
==============================================================================
--- branches/S2_6/tools/download.c      (original)
+++ branches/S2_6/tools/download.c      Tue Jul  5 09:04:36 2016
@@ -228,6 +228,8 @@
         const char *msg;
         char dep_URL_full[2048];
 
+        log_debug("Dependency modpack \"%s\" needed.", dep_name);
+
         if (mcb != NULL) {
           mcb(_("Download dependency modpack"));
         }
@@ -337,6 +339,7 @@
         /* Nothing */
       }
       local_name[i] = '\0';
+      log_debug("Create directory \"%s\"", local_name);
       if (!make_dir(local_name)) {
         secfile_destroy(control);
         return _("Cannot create required directories");
@@ -351,7 +354,7 @@
       }
 
       fc_snprintf(fileURL, sizeof(fileURL), "%s/%s", baseURL, src_name);
-      log_debug("%s", fileURL);
+      log_debug("Download \"%s\" as \"%s\".", fileURL, local_name);
       if (!netfile_download_file(fileURL, local_name, nf_cb, mcb)) {
         if (mcb != NULL) {
           char buf[2048];


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to