Skip to content

Commit 59fd0f8

Browse files
authored
Update day_2.cxx
1 parent 689d19d commit 59fd0f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/day_2.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ namespace AdventOfCode24::Day2 {
3434
values.end(),
3535
[&overall_trend](int a, int b) {
3636
if(a == b || std::abs(a - b) > 3 || std::abs(a - b) < 1){
37-
spdlog::warn("Invalid interval of size " + std::to_string(a - b));
37+
spdlog::debug("Invalid interval of size " + std::to_string(a - b));
3838
return true;
3939
}
4040
if((overall_trend > 0 && a > b) || (overall_trend < 0 && a < b)) {
41-
spdlog::warn("Interval of [" + std::to_string(a) + "," + std::to_string(b) + "] does not match " + ((overall_trend < 0) ? "negative" : "positive") + " trend");
41+
spdlog::debug("Interval of [" + std::to_string(a) + "," + std::to_string(b) + "] does not match " + ((overall_trend < 0) ? "negative" : "positive") + " trend");
4242
return true;
4343
}
4444
return false;
@@ -64,7 +64,7 @@ namespace AdventOfCode24::Day2 {
6464

6565
// If the general trend is zero this is failure
6666
if(!general_trend) {
67-
spdlog::warn("No general direction found.");
67+
spdlog::debug("No general direction found.");
6868
return false;
6969
}
7070

@@ -112,7 +112,7 @@ namespace AdventOfCode24::Day2 {
112112
spdlog::debug("Line " + std::string((safe_reports[safe_reports.size() - 1]) ? "Passed" : "Failed"));
113113
}
114114

115-
spdlog::info("Processed " + std::to_string(safe_reports.size()) + " layers.");
115+
spdlog::debug("Processed " + std::to_string(safe_reports.size()) + " layers.");
116116

117117
return safe_reports;
118118
}

0 commit comments

Comments
 (0)