MCPcopy Create free account
hub / github.com/MeisApps/pcbu-desktop / SetDebugLoggingEnabled

Method SetDebugLoggingEnabled

desktop/src/ui/SettingsForm.cpp:36–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void SettingsForm::SetDebugLoggingEnabled(bool enabled) {
37 if(enabled) {
38 if(!Shell::CreateFile(AppSettings::GetBaseDir() / "LOG_DEBUG"))
39 spdlog::error("Failed to create debug log file.");
40 } else {
41 if(!Shell::RemoveFile(AppSettings::GetBaseDir() / "LOG_DEBUG"))
42 spdlog::error("Failed to remove debug log file.");
43 }
44}
45
46QString SettingsForm::GetOperatingSystem() {
47 return QString::fromUtf8(AppInfo::GetOperatingSystem());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected