mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-22 01:05:53 -05:00
slightly adjust logging
This commit is contained in:
@@ -129,7 +129,7 @@ static void SaveSceneSwitcher(obs_data_t *save_data, bool saving, void *)
|
||||
********************************************************************************/
|
||||
void SwitcherData::Thread()
|
||||
{
|
||||
blog(LOG_INFO, "Advanced Scene Switcher started");
|
||||
blog(LOG_INFO, "started");
|
||||
int sleep = 0;
|
||||
|
||||
while (true) {
|
||||
@@ -143,13 +143,13 @@ void SwitcherData::Thread()
|
||||
duration = std::chrono::milliseconds(sleep);
|
||||
if (verbose)
|
||||
blog(LOG_INFO,
|
||||
"Advanced Scene Switcher sleep for %d",
|
||||
"sleep for %d",
|
||||
sleep);
|
||||
} else {
|
||||
duration = std::chrono::milliseconds(interval);
|
||||
if (verbose)
|
||||
blog(LOG_INFO,
|
||||
"Advanced Scene Switcher sleep for %d",
|
||||
"sleep for %d",
|
||||
interval);
|
||||
}
|
||||
sleep = 0;
|
||||
@@ -239,7 +239,7 @@ void SwitcherData::Thread()
|
||||
}
|
||||
}
|
||||
endLoop:
|
||||
blog(LOG_INFO, "Advanced Scene Switcher stopped");
|
||||
blog(LOG_INFO, "stopped");
|
||||
}
|
||||
|
||||
void switchScene(OBSWeakSource &scene, OBSWeakSource &transition,
|
||||
@@ -265,7 +265,7 @@ void switchScene(OBSWeakSource &scene, OBSWeakSource &transition,
|
||||
|
||||
if (switcher->verbose)
|
||||
blog(LOG_INFO,
|
||||
"Advanced Scene Switcher switched scene");
|
||||
"switched scene");
|
||||
}
|
||||
obs_source_release(currentSource);
|
||||
obs_source_release(source);
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
#include "switcher-data-structs.hpp"
|
||||
#include "volume-control.hpp"
|
||||
|
||||
#define blog(level, msg, ...) blog(level, "[adv-ss] " msg, ##__VA_ARGS__)
|
||||
|
||||
class QCloseEvent;
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -223,7 +223,7 @@ bool SwitcherData::checkPause()
|
||||
}
|
||||
|
||||
if (verbose && pause)
|
||||
blog(LOG_INFO, "Advanced Scene Switcher pause match");
|
||||
blog(LOG_INFO, "pause match");
|
||||
|
||||
return pause;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user