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 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 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); } } }