Skip to content

Commit

Permalink
[vcpkg] Fix incorrect handling of messages for permenantly disabled m…
Browse files Browse the repository at this point in the history
…etrics. (microsoft#15636)

Fixes microsoft#15630
  • Loading branch information
BillyONeal authored Jan 14, 2021
1 parent 7bd98de commit bb726c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vcpkg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ int main(const int argc, const char* const* const argv)
metrics->set_send_metrics(*p);
}

if (args.send_metrics.value_or(true) && !metrics->metrics_enabled())
if (args.send_metrics.value_or(false) && !metrics->metrics_enabled())
{
System::print2(System::Color::warning, "Warning: passed --sendmetrics, but metrics are disabled.\n");
}
Expand Down

0 comments on commit bb726c2

Please sign in to comment.