refactor(logging): separate logging from main (#2110)
This commit is contained in:
@@ -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