refactor(logging): separate logging from main (#2110)
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
#include <mutex>
|
||||
#include <string>
|
||||
|
||||
#include "src/main.h"
|
||||
#include "src/logging.h"
|
||||
#include "src/thread_safe.h"
|
||||
#include "src/utility.h"
|
||||
#include "src/video_colorspace.h"
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include "src/platform/common.h"
|
||||
|
||||
#include "src/config.h"
|
||||
#include "src/logging.h"
|
||||
#include "src/main.h"
|
||||
#include "src/thread_safe.h"
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ extern "C" {
|
||||
|
||||
#include "cuda.h"
|
||||
#include "graphics.h"
|
||||
#include "src/logging.h"
|
||||
#include "src/main.h"
|
||||
#include "src/utility.h"
|
||||
#include "src/video.h"
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
* @brief todo
|
||||
*/
|
||||
#include "graphics.h"
|
||||
#include "src/logging.h"
|
||||
#include "src/main.h"
|
||||
#include "src/video.h"
|
||||
|
||||
#include <fcntl.h>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <glad/gl.h>
|
||||
|
||||
#include "misc.h"
|
||||
#include "src/main.h"
|
||||
#include "src/logging.h"
|
||||
#include "src/platform/common.h"
|
||||
#include "src/utility.h"
|
||||
#include "src/video_colorspace.h"
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
|
||||
#include "src/config.h"
|
||||
#include "src/input.h"
|
||||
#include "src/logging.h"
|
||||
#include "src/main.h"
|
||||
#include "src/platform/common.h"
|
||||
#include "src/utility.h"
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
|
||||
#include <filesystem>
|
||||
|
||||
#include "src/logging.h"
|
||||
#include "src/main.h"
|
||||
#include "src/platform/common.h"
|
||||
#include "src/round_robin.h"
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include "graphics.h"
|
||||
#include "misc.h"
|
||||
#include "src/config.h"
|
||||
#include "src/logging.h"
|
||||
#include "src/main.h"
|
||||
#include "src/platform/common.h"
|
||||
#include "vaapi.h"
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include <thread>
|
||||
|
||||
#include "misc.h"
|
||||
#include "src/logging.h"
|
||||
#include "src/main.h"
|
||||
#include "src/nvhttp.h"
|
||||
#include "src/platform/common.h"
|
||||
|
||||
@@ -26,7 +26,7 @@ vaSyncBuffer(
|
||||
#include "graphics.h"
|
||||
#include "misc.h"
|
||||
#include "src/config.h"
|
||||
#include "src/main.h"
|
||||
#include "src/logging.h"
|
||||
#include "src/platform/common.h"
|
||||
#include "src/utility.h"
|
||||
#include "src/video.h"
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <cstdlib>
|
||||
|
||||
#include "graphics.h"
|
||||
#include "src/main.h"
|
||||
#include "src/logging.h"
|
||||
#include "src/platform/common.h"
|
||||
#include "src/round_robin.h"
|
||||
#include "src/utility.h"
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
#include "src/platform/common.h"
|
||||
|
||||
#include "src/logging.h"
|
||||
#include "src/main.h"
|
||||
#include "src/video.h"
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include <xcb/xfixes.h>
|
||||
|
||||
#include "src/config.h"
|
||||
#include "src/logging.h"
|
||||
#include "src/main.h"
|
||||
#include "src/task_pool.h"
|
||||
#include "src/video.h"
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "src/platform/macos/nv12_zero_device.h"
|
||||
|
||||
#include "src/config.h"
|
||||
#include "src/logging.h"
|
||||
|
||||
// Avoid conflict between AVFoundation and libavutil both defining AVMediaType
|
||||
#define AVMediaType AVMediaType_FFmpeg
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include <chrono>
|
||||
#include <mach/mach.h>
|
||||
|
||||
#include "src/main.h"
|
||||
#include "src/logging.h"
|
||||
#include "src/platform/common.h"
|
||||
#include "src/utility.h"
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include "src/platform/macos/av_audio.h"
|
||||
|
||||
#include "src/config.h"
|
||||
#include "src/logging.h"
|
||||
|
||||
namespace platf {
|
||||
using namespace std::literals;
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#include <pwd.h>
|
||||
|
||||
#include "misc.h"
|
||||
#include "src/logging.h"
|
||||
#include "src/main.h"
|
||||
#include "src/platform/common.h"
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include <thread>
|
||||
|
||||
#include "misc.h"
|
||||
#include "src/logging.h"
|
||||
#include "src/main.h"
|
||||
#include "src/nvhttp.h"
|
||||
#include "src/platform/common.h"
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <avrt.h>
|
||||
|
||||
#include "src/config.h"
|
||||
#include "src/main.h"
|
||||
#include "src/logging.h"
|
||||
#include "src/platform/common.h"
|
||||
|
||||
// Must be the last included file
|
||||
|
||||
@@ -15,6 +15,7 @@ typedef long NTSTATUS;
|
||||
#include "display.h"
|
||||
#include "misc.h"
|
||||
#include "src/config.h"
|
||||
#include "src/logging.h"
|
||||
#include "src/main.h"
|
||||
#include "src/platform/common.h"
|
||||
#include "src/stat_trackers.h"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "display.h"
|
||||
|
||||
#include "misc.h"
|
||||
#include "src/main.h"
|
||||
#include "src/logging.h"
|
||||
|
||||
namespace platf {
|
||||
using namespace std::literals;
|
||||
|
||||
@@ -17,7 +17,7 @@ extern "C" {
|
||||
#include "display.h"
|
||||
#include "misc.h"
|
||||
#include "src/config.h"
|
||||
#include "src/main.h"
|
||||
#include "src/logging.h"
|
||||
#include "src/nvenc/nvenc_config.h"
|
||||
#include "src/nvenc/nvenc_d3d11.h"
|
||||
#include "src/nvenc/nvenc_utils.h"
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#include "keylayout.h"
|
||||
#include "misc.h"
|
||||
#include "src/config.h"
|
||||
#include "src/logging.h"
|
||||
#include "src/main.h"
|
||||
#include "src/platform/common.h"
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#include <sddl.h>
|
||||
// clang-format on
|
||||
|
||||
#include "src/logging.h"
|
||||
#include "src/main.h"
|
||||
#include "src/platform/common.h"
|
||||
#include "src/utility.h"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// local includes
|
||||
#include "nvprefs_common.h"
|
||||
#include "src/main.h" // sunshine boost::log severity levels
|
||||
#include "src/logging.h"
|
||||
|
||||
// read user override preferences from global sunshine config
|
||||
#include "src/config.h"
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
// standard includes
|
||||
#include <cassert>
|
||||
|
||||
// local includes
|
||||
#include "nvprefs_interface.h"
|
||||
#include "driver_settings.h"
|
||||
#include "src/main.h" // main include for assert
|
||||
#include "nvprefs_interface.h"
|
||||
#include "undo_file.h"
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
#include "misc.h"
|
||||
#include "src/config.h"
|
||||
#include "src/logging.h"
|
||||
#include "src/main.h"
|
||||
#include "src/network.h"
|
||||
#include "src/nvhttp.h"
|
||||
|
||||
Reference in New Issue
Block a user