aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/musichub/util
diff options
context:
space:
mode:
authorClyhtsuriva <61652557+clyhtsuriva@users.noreply.github.com>2021-06-28 18:36:50 +0000
committerGitHub <noreply@github.com>2021-06-28 18:36:50 +0000
commite45539bd4b071e41d681dd5946e131de24c07d82 (patch)
tree4e74dd2fd311bebdc92ccf9fea57eef7b5e7db9c /src/main/java/musichub/util
parentd9e5505c6a283c7e576e7c77172221d7cb153351 (diff)
parent0572c31567b386f0845fdaa7d595ceeef01b24b7 (diff)
Merge pull request #22 from Said-Belhadj/STZ-0015
STZ-0015 : Added logs a little bit everywhere and fixed the r feature.
Diffstat (limited to 'src/main/java/musichub/util')
-rw-r--r--src/main/java/musichub/util/Policy.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/musichub/util/Policy.java b/src/main/java/musichub/util/Policy.java
index 67a1c40..ac067b4 100644
--- a/src/main/java/musichub/util/Policy.java
+++ b/src/main/java/musichub/util/Policy.java
@@ -1,5 +1,6 @@
package musichub.util;
+import java.io.IOException;
import java.util.Scanner;
/**
@@ -104,6 +105,11 @@ public final class Policy {
}
}
}
+ try {
+ LogHandler.write("Terms accepted by the user.", "INFO");
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
}
/**