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

Commit 1afb7137 authored by Robert Greenwalt's avatar Robert Greenwalt
Browse files

Revert of Ifd0c4081a. Turning off logging.

Found our bug, so switching the logging back off.
bug:8377625

Change-Id: I254bd83c48f1dd8dd62db1fcb162d460328169c5
parent 1b364498
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -349,7 +349,6 @@ public class DhcpStateMachine extends StateMachine {
    private boolean runDhcp(DhcpAction dhcpAction) {
        boolean success = false;
        DhcpResults dhcpResults = new DhcpResults();
        dhcpResults.linkProperties.mLogMe = true;

        if (dhcpAction == DhcpAction.START) {
            /* Stop any existing DHCP daemon before starting new */
+0 −18
Original line number Diff line number Diff line
@@ -20,7 +20,6 @@ import android.net.ProxyProperties;
import android.os.Parcelable;
import android.os.Parcel;
import android.text.TextUtils;
import android.util.Log;

import java.net.InetAddress;
import java.net.Inet4Address;
@@ -66,7 +65,6 @@ public class LinkProperties implements Parcelable {
    private String mDomains;
    private Collection<RouteInfo> mRoutes = new ArrayList<RouteInfo>();
    private ProxyProperties mHttpProxy;
    public boolean mLogMe;

    // Stores the properties of links that are "stacked" above this link.
    // Indexed by interface name to allow modification and to prevent duplicates being added.
@@ -90,7 +88,6 @@ public class LinkProperties implements Parcelable {

    public LinkProperties() {
        clear();
        mLogMe = false;
    }

    // copy constructor instead of clone
@@ -110,14 +107,6 @@ public class LinkProperties implements Parcelable {
    }

    public void setInterfaceName(String iface) {
        if (mLogMe) {
            Log.d("LinkProperties", "setInterfaceName from " + mIfaceName +
                    " to " + iface);
            for (StackTraceElement e : Thread.currentThread().getStackTrace()) {
                Log.d("LinkProperties", "  " + e.toString());
            }
        }

        mIfaceName = iface;
        ArrayList<RouteInfo> newRoutes = new ArrayList<RouteInfo>(mRoutes.size());
        for (RouteInfo route : mRoutes) {
@@ -248,13 +237,6 @@ public class LinkProperties implements Parcelable {
    }

    public void clear() {
        if (mLogMe) {
            Log.d("LinkProperties", "clear from " + mIfaceName);
            for (StackTraceElement e : Thread.currentThread().getStackTrace()) {
                Log.d("LinkProperties", "  " + e.toString());
            }
        }

        mIfaceName = null;
        mLinkAddresses.clear();
        mDnses.clear();