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

Commit 01a7f33c authored by Harshit Mahajan's avatar Harshit Mahajan Committed by Android (Google) Code Review
Browse files

Merge "Replace Slog with Log in CrashRecoveryUtils.java" into main

parents 3f7e0582 ffa4c38a
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();