mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-18 15:21:41 -05:00
Add log level which prints performed actions
This commit is contained in:
@@ -5,7 +5,16 @@ namespace advss {
|
||||
|
||||
bool VerboseLoggingEnabled()
|
||||
{
|
||||
return GetSwitcher() && GetSwitcher()->verbose;
|
||||
return GetSwitcher() &&
|
||||
GetSwitcher()->logLevel == SwitcherData::LogLevel::VERBOSE;
|
||||
}
|
||||
|
||||
bool ActionLoggingEnabled()
|
||||
{
|
||||
return GetSwitcher() &&
|
||||
(GetSwitcher()->logLevel ==
|
||||
SwitcherData::LogLevel::PRINT_ACTION ||
|
||||
GetSwitcher()->logLevel == SwitcherData::LogLevel::VERBOSE);
|
||||
}
|
||||
|
||||
} // namespace advss
|
||||
|
||||
Reference in New Issue
Block a user