diff options
author | Toni500git <[email protected]> | 2024-10-13 14:24:10 +0200 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-10-13 14:13:56 +0100 |
commit | 05a5e0b4f1ced12f2a0330132f37b0081d7a5e4d (patch) | |
tree | 625d91d64761c7d334f68eadf5f85f134a0391f4 /src/debug | |
parent | b61d4c363679a880e8577a3d983d73dbab367a9d (diff) | |
download | Hyprland-05a5e0b4f1ced12f2a0330132f37b0081d7a5e4d.tar.gz Hyprland-05a5e0b4f1ced12f2a0330132f37b0081d7a5e4d.zip |
hyprland: convert std::cout and std::cerr to std::println()
Diffstat (limited to 'src/debug')
-rw-r--r-- | src/debug/Log.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/debug/Log.cpp b/src/debug/Log.cpp index a4c5b08e..5a314833 100644 --- a/src/debug/Log.cpp +++ b/src/debug/Log.cpp @@ -4,7 +4,7 @@ #include "RollingLogFollow.hpp" #include <fstream> -#include <iostream> +#include <print> #include <fcntl.h> void Debug::init(const std::string& IS) { @@ -69,5 +69,5 @@ void Debug::log(LogLevel level, std::string str) { // log it to the stdout too. if (!disableStdout) - std::cout << ((coloredLogs && !**coloredLogs) ? str : coloredStr) << "\n"; + std::println("{}", ((coloredLogs && !**coloredLogs) ? str : coloredStr)); } |