Skip to content

Commit 73b6236

Browse files
committed
Adjust log messages
1 parent 7616aa6 commit 73b6236

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/main/java/io/simplelocalize/cli/SimplelocalizeCliCommand.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class SimplelocalizeCliCommand implements Runnable
3535

3636
private static final Logger log = LoggerFactory.getLogger(SimplelocalizeCliCommand.class);
3737

38-
@Option(names = {"-c", "--config"}, description = "Configuration file (default: ./simplelocalize.yml)")
38+
@Option(names = {"-c", "--config"}, description = "Configuration file (default: simplelocalize.yml)")
3939
Path configurationFilePath;
4040

4141
@Option(names = {"--debug"}, description = "Debug mode", defaultValue = "false")
@@ -359,10 +359,10 @@ private void printDebug(Exception e)
359359
{
360360
if (debug)
361361
{
362-
log.error("Error occurred", e);
362+
log.error("Command failed.", e);
363363
} else
364364
{
365-
log.error("Error occurred. Use '--debug' before command name to see more details");
365+
log.error("Command failed. Use '--debug' parameter before the command name to see stacktrace.");
366366
}
367367
}
368368

src/main/java/io/simplelocalize/cli/command/PullHostingCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public void invoke() throws IOException, InterruptedException
7070
Path savePath = Path.of(pullDirectory, plainResource + ".json");
7171
client.downloadFile(downloadUrl, savePath);
7272
}
73-
log.info("Downloaded {} resources from Translation Hosting", resourcePaths.size());
73+
log.info("Downloaded {} Translation Hosting resources", resourcePaths.size());
7474

7575
}
7676

src/main/java/io/simplelocalize/cli/configuration/ConfigurationLoader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ private Configuration load(Path configurationFilePath)
4848
log.info("Configuration file loaded successfully");
4949
} catch (FileNotFoundException e)
5050
{
51-
log.info("Configuration file not found");
51+
log.info("Configuration file not present");
5252
return new Configuration();
5353
} catch (Exception e)
5454
{

src/test/java/io/simplelocalize/cli/command/PullHostingCommandTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ void invoke() throws Exception
5454
assertThat(logEventList.get(1).getFormattedMessage()).isEqualTo("Project token: dev-e7c0b7686c7b45fea4450a4c4a83c7ff");
5555
assertThat(logEventList.get(2).getFormattedMessage()).isEqualTo("Environment: latest");
5656
assertThat(logEventList.get(3).getFormattedMessage()).isEqualTo("Found 6 Translation Hosting resources");
57-
assertThat(logEventList.get(4).getFormattedMessage()).isEqualTo("Downloaded 6 resources from Translation Hosting");
57+
assertThat(logEventList.get(4).getFormattedMessage()).isEqualTo("Downloaded 6 Translation Hosting resources");
5858
}
5959
}

0 commit comments

Comments
 (0)