mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-08-10 00:52:16 +00:00
Proper logging instead of blindly printing to standard out
This commit is contained in:
@@ -8,9 +8,9 @@
|
||||
|
||||
#include <cstring>
|
||||
#include <filesystem>
|
||||
#include <iostream>
|
||||
|
||||
#include "common.h"
|
||||
#include "sunshine/main.h"
|
||||
#include "sunshine/utility.h"
|
||||
|
||||
namespace platf {
|
||||
@@ -331,7 +331,7 @@ int mouse(input_raw_t &gp) {
|
||||
|
||||
gp.mouse_input.reset(buf);
|
||||
if(err) {
|
||||
std::cout << "Could not create Sunshine Mouse: "sv << strerror(-err) << std::endl;
|
||||
BOOST_LOG(error) << "Could not create Sunshine Mouse: "sv << strerror(-err);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -400,7 +400,7 @@ int gamepad(input_raw_t &gp) {
|
||||
|
||||
gp.gamepad_input.reset(buf);
|
||||
if(err) {
|
||||
std::cout << "Could not create Sunshine Gamepad: "sv << strerror(-err) << std::endl;
|
||||
BOOST_LOG(error) << "Could not create Sunshine Gamepad: "sv << strerror(-err);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user