Skip to content

Commit

Permalink
Fix logging sometimes not working (#754)
Browse files Browse the repository at this point in the history
Revert #741 and remove log message since it's not a big deal
  • Loading branch information
ASpoonPlaysGames authored Jul 28, 2024
1 parent 2cd7829 commit c405583
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions primedev/logging/logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,7 @@ void CustomSink::custom_log(const custom_log_msg& msg)

void InitialiseConsole()
{
if (GetConsoleWindow() == NULL && AllocConsole() == FALSE)
{
std::cout << "[*] Failed to create a console window" << std::endl;
}
else
if (AllocConsole() != FALSE)
{
freopen("CONOUT$", "w", stdout);
freopen("CONOUT$", "w", stderr);
Expand Down

0 comments on commit c405583

Please sign in to comment.