remove extra log message
[citadel.git] / citadel / modules / upgrade / serv_upgrade.c
index 6526999275cd19827fbd1e0e3f9e8bb6afcf192c..4d3c50bd7e0037e4fb68257e00fa8b20f5e756b2 100644 (file)
@@ -202,7 +202,6 @@ void guess_time_zone(void) {
 }
 
 
-
 /*
  * Per-room callback function for ingest_old_roominfo_and_roompic_files()
  *
@@ -218,8 +217,6 @@ void iorarf_oneroom(char *roomname, char *infofile, char *picfile)
        long pic_msgnum = 0;
        char subject[SIZ];
 
-       syslog(LOG_DEBUG, "iorarf_oneroom( %s , %s , %s )", roomname, infofile, picfile);
-
        // Test for the presence of a legacy "room info file"
        if (!IsEmptyStr(infofile)) {
                fp = fopen(infofile, "r");
@@ -248,7 +245,7 @@ void iorarf_oneroom(char *roomname, char *infofile, char *picfile)
                        }
                }
                fclose(fp);
-               // unlink(filename);
+               if (info_msgnum > 0) unlink(infofile);
        }
 
        // Test for the presence of a legacy "room picture file" and import it.
@@ -279,7 +276,7 @@ void iorarf_oneroom(char *roomname, char *infofile, char *picfile)
                        }
                }
                fclose(fp);
-               // unlink(filename);
+               if (pic_msgnum > 0) unlink(picfile);
        }
 
        // Now we have the message numbers of our new banner and icon.  Record them in the room record.
@@ -296,7 +293,6 @@ void iorarf_oneroom(char *roomname, char *infofile, char *picfile)
 }
 
 
-
 struct iorarf_list {
        struct iorarf_list *next;
        char name[ROOMNAMELEN];
@@ -432,9 +428,7 @@ void check_server_upgrades(void) {
        syslog(LOG_INFO, "Existing database version on disk is %d", CtdlGetConfigInt("MM_hosted_upgrade_level"));
 
        if (CtdlGetConfigInt("MM_hosted_upgrade_level") < REV_LEVEL) {
-               syslog(LOG_WARNING,
-                       "Server hosted updates need to be processed at this time.  Please wait..."
-               );
+               syslog(LOG_WARNING, "Server hosted updates need to be processed at this time.  Please wait...");
        }
        else {
                return;
@@ -500,7 +494,6 @@ void check_server_upgrades(void) {
 CTDL_MODULE_UPGRADE(upgrade)
 {
        check_server_upgrades();
-       ingest_old_roominfo_and_roompic_files();        // FIXME remove this line, it's proper above!!!!
        
        /* return our module id for the Log */
        return "upgrade";