Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ffa4c38a authored by Harshit Mahajan's avatar Harshit Mahajan
Browse files

Replace Slog with Log in CrashRecoveryUtils.java

Slog.println is hidden api while Log.println is public api.

Bug: 289203818
Test: TH
Flag: EXEMPT refactor
Change-Id: I08589b3e94d9875a447453eda7f93c8197560fe7
parent cd85368b
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ package com.android.server.crashrecovery;

import android.os.Environment;
import android.util.IndentingPrintWriter;
import android.util.Slog;
import android.util.Log;

import java.io.BufferedReader;
import java.io.File;
@@ -41,7 +41,7 @@ public class CrashRecoveryUtils {

    /** Persist recovery related events in crashrecovery events file.**/
    public static void logCrashRecoveryEvent(int priority, String msg) {
        Slog.println(priority, TAG, msg);
        Log.println(priority, TAG, msg);
        try {
            File fname = getCrashRecoveryEventsFile();
            synchronized (sFileLock) {
@@ -52,7 +52,7 @@ public class CrashRecoveryUtils {
                pw.close();
            }
        } catch (IOException e) {
            Slog.e(TAG, "Unable to log CrashRecoveryEvents " + e.getMessage());
            Log.e(TAG, "Unable to log CrashRecoveryEvents " + e.getMessage());
        }
    }

@@ -72,7 +72,7 @@ public class CrashRecoveryUtils {
                    pw.println(line);
                }
            } catch (IOException e) {
                Slog.e(TAG, "Unable to dump CrashRecoveryEvents " + e.getMessage());
                Log.e(TAG, "Unable to dump CrashRecoveryEvents " + e.getMessage());
            }
        }
        pw.decreaseIndent();