Remove unnecessary logging statements
This commit is contained in:
parent
47fe1e1bee
commit
1c04aac1f0
1 changed files with 0 additions and 17 deletions
|
@ -119,7 +119,6 @@ public class MarkdownFile {
|
||||||
}
|
}
|
||||||
|
|
||||||
public int load(File markdownFile) {
|
public int load(File markdownFile) {
|
||||||
System.out.println("Attempting to load file from " + markdownFile.getAbsolutePath());
|
|
||||||
int code;
|
int code;
|
||||||
if (markdownFile.exists() && markdownFile.canRead()) {
|
if (markdownFile.exists() && markdownFile.canRead()) {
|
||||||
BufferedReader reader = null;
|
BufferedReader reader = null;
|
||||||
|
@ -133,16 +132,6 @@ public class MarkdownFile {
|
||||||
sb.append(line + "\n");
|
sb.append(line + "\n");
|
||||||
this.content = sb.toString();
|
this.content = sb.toString();
|
||||||
code = SUCCESS;
|
code = SUCCESS;
|
||||||
System.out.println(String.format(
|
|
||||||
Locale.ENGLISH,
|
|
||||||
"Successfully loaded file from %s",
|
|
||||||
markdownFile.getAbsolutePath()
|
|
||||||
));
|
|
||||||
System.out.println(String.format(
|
|
||||||
Locale.ENGLISH,
|
|
||||||
"File contents %s",
|
|
||||||
this.content
|
|
||||||
));
|
|
||||||
} catch (FileNotFoundException e) {
|
} catch (FileNotFoundException e) {
|
||||||
code = FILE_NOT_EXISTS;
|
code = FILE_NOT_EXISTS;
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
@ -168,7 +157,6 @@ public class MarkdownFile {
|
||||||
}
|
}
|
||||||
|
|
||||||
public int save(String path) {
|
public int save(String path) {
|
||||||
System.out.println("Attempting to save file to " + path);
|
|
||||||
int code;
|
int code;
|
||||||
File markdownFile = new File(path);
|
File markdownFile = new File(path);
|
||||||
if (!markdownFile.exists()) {
|
if (!markdownFile.exists()) {
|
||||||
|
@ -187,11 +175,6 @@ public class MarkdownFile {
|
||||||
);
|
);
|
||||||
writer.write(this.content);
|
writer.write(this.content);
|
||||||
code = SUCCESS;
|
code = SUCCESS;
|
||||||
System.out.println(String.format(
|
|
||||||
Locale.ENGLISH,
|
|
||||||
"File successfully saved to %s",
|
|
||||||
path
|
|
||||||
));
|
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
code = WRITE_ERROR;
|
code = WRITE_ERROR;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue