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

Commit 7eb1e335 authored by Mike Yu's avatar Mike Yu
Browse files

Remove default log tag

Remove the default tag so as not to affect the entire netd process.
Also rename the log tag in ResolverController as "resolv".

Bug: 203712926
Test: checked the netd and the dnsresolver log.
Change-Id: Ia16170381f4c4986883b71c281e1f8f5accd9dd4
parent 09a42197
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -14,6 +14,8 @@
 * limitations under the License.
 */

#define LOG_TAG "resolv"

#include "DnsResolver.h"

#include <android-base/logging.h>
@@ -28,7 +30,6 @@

bool resolv_init(const ResolverNetdCallbacks* callbacks) {
    android::base::InitLogging(/*argv=*/nullptr);
    android::base::SetDefaultTag("libnetd_resolv");
    LOG(INFO) << __func__ << ": Initializing resolver";
    // TODO(b/170539625): restore log level to WARNING after clarifying flaky tests.
    const bool isDebug = isUserDebugBuild();
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
 * limitations under the License.
 */

#define LOG_TAG "ResolverController"
#define LOG_TAG "resolv"

#include "ResolverController.h"

+2 −0
Original line number Diff line number Diff line
@@ -51,6 +51,8 @@
 * --Copyright--
 */

#define LOG_TAG "resolv"

#include "gethnamaddr.h"

#include <android-base/logging.h>