package d.i.f.g;

import java.io.PrintWriter;
import java.io.StringWriter;
import java.io.Writer;

/* JADX INFO: compiled from: RLog.java */
/* JADX INFO: loaded from: classes.dex */
public final class c {
    public static boolean a = d.i.f.c.c.j();

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public static boolean f3658b = d.i.f.c.c.j();

    public static String a(Throwable th) {
        if (th == null) {
            return "";
        }
        StringWriter stringWriter = new StringWriter(256);
        PrintWriter printWriter = new PrintWriter((Writer) stringWriter, false);
        th.printStackTrace(printWriter);
        printWriter.flush();
        return stringWriter.toString();
    }
}
