api: Excise `cros_logging` module
Remove all usages of `cros_logging` in chromite/api and replace them
with the stdlib `logging` module. The NOTICE level is already provided by
the custom Logger subclass initialized in chromite's top level module __init__.py
This change was made by finding all imports of `cros_logging` and
replacing those usages with stdlib `logging` and then running `isort`
over all modified files.
BUG=b:191490453
TEST=`run_tests`
Change-Id: I9336b714bea49ed3d1c7902f7069eb2bbd292e33
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/3043697
Tested-by: Chris McDonald <cjmcdonald@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Alex Klein <saklein@chromium.org>
Commit-Queue: Chris McDonald <cjmcdonald@chromium.org>
diff --git a/api/controller/sysroot.py b/api/controller/sysroot.py
index c13bceb..f8f2768 100644
--- a/api/controller/sysroot.py
+++ b/api/controller/sysroot.py
@@ -4,19 +4,19 @@
"""Sysroot controller."""
+import logging
import os
-from chromite.api.gen.chromiumos import common_pb2
from chromite.api import controller
from chromite.api import faux
from chromite.api import validate
from chromite.api.controller import controller_util
+from chromite.api.gen.chromiumos import common_pb2
from chromite.api.metrics import deserialize_metrics_log
from chromite.lib import binpkg
from chromite.lib import build_target_lib
from chromite.lib import chroot_lib
from chromite.lib import cros_build_lib
-from chromite.lib import cros_logging as logging
from chromite.lib import goma_lib
from chromite.lib import osutils
from chromite.lib import portage_util
@@ -24,6 +24,7 @@
from chromite.service import sysroot
from chromite.utils import metrics
+
_ACCEPTED_LICENSES = '@CHROMEOS'