Skip to content

Commit

Permalink
fix(log): improve log
Browse files Browse the repository at this point in the history
Signed-off-by: Teclib <skita@teclib.com>
  • Loading branch information
stonebuzz committed Dec 13, 2019
1 parent e392f1f commit f2c5fe4
Showing 1 changed file with 4 additions and 24 deletions.
28 changes: 4 additions & 24 deletions inventory/src/main/java/org/flyve/inventory/FlyveLog.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ private FlyveLog() {
*/
public static void d(String message) {
if(message != null) {
Logger.d(TAG, message);
Log.d(TAG, message);
}
}

Expand All @@ -62,7 +62,7 @@ public static void d(String message) {
*/
public static void v(String message) {
if(message != null) {
Logger.v(TAG, message);
Log.v(TAG, message);
}
}

Expand All @@ -72,7 +72,7 @@ public static void v(String message) {
*/
public static void i(String message) {
if(message != null) {
Logger.i(TAG, message);
Log.i(TAG, message);
}
}

Expand All @@ -82,27 +82,7 @@ public static void i(String message) {
*/
public static void e(String message) {
if(message != null) {
Logger.e(TAG, message);
}
}

/**
* Sends a WARN log message
* @param message to log
*/
public static void w(String message) {
if(message != null) {
Logger.w(TAG, message);
}
}

/**
* Reports a condition that should never happen, wts (What a Terrible Failure)
* @param message to log
*/
public static void wtf(String message) {
if(message != null) {
Logger.wtf(TAG, message);
Log.e(TAG, message);
}
}

Expand Down

0 comments on commit f2c5fe4

Please sign in to comment.