Skip to Content.
Sympa Menu

perfsonar-dev - [GEANT/SA2/ps-java-services] r5605 - trunk/perfsonar-java-base2/src/main/java/org/perfsonar/base2/service/configuration/migration

Subject: perfsonar development work

List archive

[GEANT/SA2/ps-java-services] r5605 - trunk/perfsonar-java-base2/src/main/java/org/perfsonar/base2/service/configuration/migration


Chronological Thread 
  • From:
  • To:
  • Subject: [GEANT/SA2/ps-java-services] r5605 - trunk/perfsonar-java-base2/src/main/java/org/perfsonar/base2/service/configuration/migration
  • Date: Wed, 28 Apr 2010 11:57:48 +0100

Author: psnc.pietrzak
Date: 2010-04-28 11:57:48 +0100 (Wed, 28 Apr 2010)
New Revision: 5605

Modified:

trunk/perfsonar-java-base2/src/main/java/org/perfsonar/base2/service/configuration/migration/MigratorComponent.java
Log:
Updated the logs to be more clear for the admin.

Modified:
trunk/perfsonar-java-base2/src/main/java/org/perfsonar/base2/service/configuration/migration/MigratorComponent.java
===================================================================
---
trunk/perfsonar-java-base2/src/main/java/org/perfsonar/base2/service/configuration/migration/MigratorComponent.java
2010-04-27 11:51:15 UTC (rev 5604)
+++
trunk/perfsonar-java-base2/src/main/java/org/perfsonar/base2/service/configuration/migration/MigratorComponent.java
2010-04-28 10:57:48 UTC (rev 5605)
@@ -60,10 +60,16 @@
}
final String templateFilePath =
getFullPath("configuration.xml.template");
final String configurationFile =
getFullPath("configuration.xml");
- logger.debug("Creating configuration file: " +
configurationFile + " from template: " + templateFilePath + "...");
+ logger.debug("Creating configuration file: "
+ + configurationFile + " from template: " +
templateFilePath + "...");
+
engine.createFileFromTemplate(new
File(templateFilePath), configurationFile);
- logger.info("Configuration file: " +
configurationFile + " created successfully from template: " +
templateFilePath);

+ logger.info("Old configuration files were
successfully rewritten "
+ + "to the new format. Please check, if the
rewritten configuration file ("
+ + configurationFile + ") is valid."
+ + " You must restart the service for the
changes to take effect.");
+
configFiles.removeFiles();
} catch (IOException ex) {
logger.error(ex.getMessage(), ex);



  • [GEANT/SA2/ps-java-services] r5605 - trunk/perfsonar-java-base2/src/main/java/org/perfsonar/base2/service/configuration/migration, svn-noreply, 04/28/2010

Archive powered by MHonArc 2.6.16.

Top of Page