mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-25 08:32:38 -06:00
47 lines
1.1 KiB
Java
47 lines
1.1 KiB
Java
|
package com.airbnb.lottie.utils;
|
||
|
|
||
|
import android.util.Log;
|
||
|
import com.airbnb.lottie.L;
|
||
|
import com.airbnb.lottie.LottieLogger;
|
||
|
import java.util.HashSet;
|
||
|
import java.util.Set;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public class LogcatLogger implements LottieLogger {
|
||
|
private static final Set<String> loggedMessages = new HashSet();
|
||
|
|
||
|
@Override // com.airbnb.lottie.LottieLogger
|
||
|
public void debug(String str) {
|
||
|
debug(str, null);
|
||
|
}
|
||
|
|
||
|
@Override // com.airbnb.lottie.LottieLogger
|
||
|
public void debug(String str, Throwable th) {
|
||
|
if (L.DBG) {
|
||
|
Log.d(L.TAG, str, th);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.airbnb.lottie.LottieLogger
|
||
|
public void warning(String str) {
|
||
|
warning(str, null);
|
||
|
}
|
||
|
|
||
|
@Override // com.airbnb.lottie.LottieLogger
|
||
|
public void warning(String str, Throwable th) {
|
||
|
Set<String> set = loggedMessages;
|
||
|
if (set.contains(str)) {
|
||
|
return;
|
||
|
}
|
||
|
Log.w(L.TAG, str, th);
|
||
|
set.add(str);
|
||
|
}
|
||
|
|
||
|
@Override // com.airbnb.lottie.LottieLogger
|
||
|
public void error(String str, Throwable th) {
|
||
|
if (L.DBG) {
|
||
|
Log.d(L.TAG, str, th);
|
||
|
}
|
||
|
}
|
||
|
}
|