File tree Expand file tree Collapse file tree
base/cvd/cuttlefish/host/commands/run_cvd Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ cf_cc_library(
4646 srcs = ["reporting.cpp" ],
4747 hdrs = ["reporting.h" ],
4848 deps = [
49+ "//cuttlefish/ansi_codes" ,
4950 "//libbase" ,
5051 "@abseil-cpp//absl/log" ,
5152 "@fruit" ,
Original file line number Diff line number Diff line change 2020
2121#include " absl/log/log.h"
2222
23- namespace cuttlefish {
23+ # include " cuttlefish/ansi_codes/ansi_codes.h "
2424
25- static constexpr char kGreenColor [] = " \033 [1;32m" ;
26- static constexpr char kResetColor [] = " \033 [0m" ;
25+ namespace cuttlefish {
2726
2827DiagnosticInformation::~DiagnosticInformation () = default ;
2928
3029void DiagnosticInformation::PrintAll (
3130 const std::vector<DiagnosticInformation*>& infos) {
32- LOG (INFO ) << kGreenColor << " Run `cvd logs` to report paths to device logs."
33- << kResetColor ;
31+ LOG (INFO ) << kAnsiGreen << " Run `cvd logs` to report paths to device logs."
32+ << kAnsiReset ;
3433 for (const auto & info : infos) {
3534 for (const auto & line : info->Diagnostics ()) {
36- LOG (INFO ) << kGreenColor << " " << line << kResetColor ;
35+ LOG (INFO ) << kAnsiGreen << " " << line << kAnsiReset ;
3736 }
3837 }
3938}
You can’t perform that action at this time.
0 commit comments