Permalink
Browse files

Adding more user messages

  • Loading branch information...
1 parent 1a7a766 commit 80fa984ba89ce999a0fee658c89ac3bc454b4640 @stevearm committed Dec 11, 2011
@@ -3,6 +3,9 @@
import java.io.File;
import java.io.Reader;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import com.google.inject.Inject;
import com.horsefire.syncaws.CommandLineArgs;
import com.horsefire.syncaws.ConfigService;
@@ -15,6 +18,8 @@
public class CreateTask implements Task {
+ private static final Logger LOG = LoggerFactory.getLogger(CreateTask.class);
+
private final CommandLineArgs m_options;
private final ConfigService m_configService;
private final UuidGenerator m_generator;
@@ -76,5 +81,7 @@ public void run() throws Exception {
m_client.putHtml(htmlFile.toString(), m_urlService.getHtmlFile(project));
m_client.putJson("[]", m_urlService.getIndexList(project));
m_configService.addProject(project);
+ LOG.info("Added project {} and uploaded index files",
+ m_options.getProject());
}
}
@@ -4,6 +4,9 @@
import java.io.FileWriter;
import java.io.IOException;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import com.google.inject.Inject;
import com.horsefire.syncaws.CommandLineArgs;
import com.horsefire.syncaws.ConfigService;
@@ -14,6 +17,8 @@
public class ScanTask extends ProjectTask {
+ private static final Logger LOG = LoggerFactory.getLogger(ScanTask.class);
+
private final InkStamp m_inkStamp;
private final FingerprintSerializer m_serializer;
@@ -36,6 +41,7 @@ public void run() {
.getFingerprintFile(getOptions()));
writer.write(json);
writer.close();
+ LOG.info("Local fingerprint updated");
} catch (IOException e) {
throw new RuntimeException("Error serializing out fingerprint", e);
}
@@ -1,11 +1,17 @@
package com.horsefire.syncaws.tasks;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import com.google.inject.Inject;
import com.horsefire.syncaws.ConfigService;
import com.horsefire.syncaws.aws.AwsClient;
public class ValidateTask implements Task {
+ private static final Logger LOG = LoggerFactory
+ .getLogger(ValidateTask.class);
+
private final ConfigService m_configService;
private final AwsClient m_awsClient;
@@ -26,5 +32,6 @@ public void run() throws Exception {
} catch (Exception e) {
throw new RuntimeException("Could not connect to S3", e);
}
+ LOG.info("Config file and S3 settings validated");
}
}

0 comments on commit 80fa984

Please sign in to comment.