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

Skip to content
Commit d650564b authored by David Duarte's avatar David Duarte Committed by Thomas Girardier
Browse files

RootCanal: Replace GD logger by libbase logging

The GD logger in RootCanal wasn't working for VERBOSE and
DEBUG log levels because of the absence of InitFlags

libbase logging implements a Google-style C++ logging interface
which is easier to use in C++ than printf style specifiers

libbase is also available for the host so we use that instead
of the GD logger

To ease the migration and define a logging interface for rootcanal
a log.h header have been introduced to shim the old GD logger
style macros

The minimum log level on the host can be choosen via the
ANDROID_LOG_TAGS environement variable, for example
ANDROID_LOG_TAGS=*:v set the minimum log level to verbose

Bug: 245578454
Test: Run root-canal
Ignore-AOSP-First: Cherry-picked from AOSP
Merged-In: I88a33bc010b0be4724ef5956f9a664245c1d4e7e
Change-Id: I88a33bc010b0be4724ef5956f9a664245c1d4e7e
parent 36cb7c92
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment