From 7d263f265e9fdde4fd8870a136aa352b47a506c6 Mon Sep 17 00:00:00 2001 From: Claudio Atzori Date: Wed, 1 Mar 2023 11:58:07 +0100 Subject: [PATCH] adjusted logs --- .../dhp/oa/graph/raw/MigrateMongoMdstoresApplication.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/raw/MigrateMongoMdstoresApplication.java b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/raw/MigrateMongoMdstoresApplication.java index 4949cc627..6f0adc75a 100644 --- a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/raw/MigrateMongoMdstoresApplication.java +++ b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/raw/MigrateMongoMdstoresApplication.java @@ -131,7 +131,7 @@ public class MigrateMongoMdstoresApplication extends AbstractMigrationApplicatio // that is the hdfs path basePath/MDSTOREID/timestamp is missing // So we have to synch it if (!hdfsMDStores.containsKey(currentMDStore.getMdstore())) { - log.info("Adding store " + currentMDStore.getMdstore()); + log.info("Adding store {}", currentMDStore.getMdstore()); try { synchMDStoreIntoHDFS( mdFormat, mdLayout, mdInterpretation, hdfsPath, fileSystem, mongoBaseUrl, mongoDb, @@ -145,14 +145,14 @@ public class MigrateMongoMdstoresApplication extends AbstractMigrationApplicatio // basePath/MDSTOREID/timestamp but the timestamp on hdfs is older that the // new one in mongo so we have to synch the new mdstore and delete the old one if (currentMDStore.getLatestTimestamp() > current.getLatestTimestamp()) { - log.info("Updating MDStore " + currentMDStore.getMdstore()); + log.info("Updating MDStore {}", currentMDStore.getMdstore()); final String mdstoreDir = createMDStoreDir(hdfsPath, currentMDStore.getMdstore()); final String rmPath = createMDStoreDir(mdstoreDir, current.getLatestTimestamp().toString()); try { synchMDStoreIntoHDFS( mdFormat, mdLayout, mdInterpretation, hdfsPath, fileSystem, mongoBaseUrl, mongoDb, currentMDStore); - log.info("deleting " + rmPath); + log.info("deleting {}", rmPath); // DELETE THE OLD MDSTORE fileSystem.delete(new Path(rmPath), true); } catch (IOException e) {