platform_hardware_interfaces/configstore/utils/ConfigStoreUtils.cpp
Peiyong Lin 09dbd3df37 [ConfigStore] Slient log spam.
Previously ConfigStore keeps logging info of each function, this patch moves it
to verbose to avoid log spam.

BUG: 123312783
Test: Build, flash and boot. Verify with adb logcat
Change-Id: I8dce745122ca05d18cd899c536342521432f5325
2019-02-06 11:05:14 -08:00

40 lines
1 KiB
C++

//
// Copyright (C) 2017 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
#define LOG_TAG "ConfigStore"
#include <android-base/logging.h>
#include <configstore/Utils.h>
namespace android {
namespace hardware {
namespace details {
bool wouldLogVerbose() {
return WOULD_LOG(VERBOSE);
}
void logAlwaysVerbose(const std::string& message) {
LOG(VERBOSE) << message;
}
void logAlwaysError(const std::string& message) {
LOG(ERROR) << message;
}
} // namespace details
} // namespace hardware
} // namespace android