comparison OrthancServer/Sources/main.cpp @ 5450:9ffd6d18daf3 pg-transactions

log lines now contain the thread name
author Alain Mazy <am@osimis.io>
date Tue, 05 Dec 2023 16:26:35 +0100
parents 38403e13c1ca
children 176bc05f85f4 312e866e2550
comparison
equal deleted inserted replaced
5449:29858f424fc7 5450:9ffd6d18daf3
1778 1778
1779 1779
1780 int main(int argc, char* argv[]) 1780 int main(int argc, char* argv[])
1781 { 1781 {
1782 Logging::Initialize(); 1782 Logging::Initialize();
1783 Logging::SetCurrentThreadName("MAIN");
1783 SetGlobalVerbosity(Verbosity_Default); 1784 SetGlobalVerbosity(Verbosity_Default);
1784 1785
1785 bool upgradeDatabase = false; 1786 bool upgradeDatabase = false;
1786 bool loadJobsFromDatabase = true; 1787 bool loadJobsFromDatabase = true;
1787 const char* configurationFile = NULL; 1788 const char* configurationFile = NULL;
1831 return 0; 1832 return 0;
1832 } 1833 }
1833 else if (argument == "--verbose") 1834 else if (argument == "--verbose")
1834 { 1835 {
1835 SetGlobalVerbosity(Verbosity_Verbose); 1836 SetGlobalVerbosity(Verbosity_Verbose);
1837 }
1838 else if (argument == "--logs-no-thread")
1839 {
1840 Logging::EnableThreadNames(false);
1836 } 1841 }
1837 else if (argument == "--trace") 1842 else if (argument == "--trace")
1838 { 1843 {
1839 SetGlobalVerbosity(Verbosity_Trace); 1844 SetGlobalVerbosity(Verbosity_Trace);
1840 } 1845 }