Skip to content

Commit 2473a4b

Browse files
author
Robert Greenwalt
committed
Stop complaining about failure to remove routes
We often get told a network has gone away after the interface is downed and the routes are auto-removed. Change the log to VDBUG so standard builds don't have the noise. bug:2856577 Change-Id: If12ec3ed3b646ff6ef89b3778d037cfc478c0d25
1 parent 7f97e54 commit 2473a4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/java/com/android/server/ConnectivityService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,7 +1341,7 @@ private boolean modifyRoute(String ifaceName, LinkProperties lp, RouteInfo r, in
13411341
mNetd.removeRoute(ifaceName, r);
13421342
} catch (Exception e) {
13431343
// never crash - catch them all
1344-
if (DBG) loge("Exception trying to remove a route: " + e);
1344+
if (VDBG) loge("Exception trying to remove a route: " + e);
13451345
return false;
13461346
}
13471347
} else {
@@ -1353,7 +1353,7 @@ private boolean modifyRoute(String ifaceName, LinkProperties lp, RouteInfo r, in
13531353
mNetd.removeSecondaryRoute(ifaceName, r);
13541354
} catch (Exception e) {
13551355
// never crash - catch them all
1356-
if (DBG) loge("Exception trying to remove a route: " + e);
1356+
if (VDBG) loge("Exception trying to remove a route: " + e);
13571357
return false;
13581358
}
13591359
}

0 commit comments

Comments
 (0)