mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
JsonUtils & improvements (#476)
* add JsonUtils * update * repair * update * ident * Schema correct msg other adjusts * fix effDel, ExceptionLog, cleanup * fix travis qt5.2 * not so funny * use Qthread interrupt instead abort bool * update services
This commit is contained in:
@@ -24,7 +24,7 @@ Logger* Logger::getInstance(QString name, Logger::LogLevel minLevel)
|
||||
{
|
||||
LoggerMap = new std::map<QString,Logger*>;
|
||||
}
|
||||
|
||||
|
||||
if ( LoggerMap->find(name) == LoggerMap->end() )
|
||||
{
|
||||
log = new Logger(name,minLevel);
|
||||
@@ -44,7 +44,7 @@ void Logger::deleteInstance(QString name)
|
||||
{
|
||||
if (LoggerMap == nullptr)
|
||||
return;
|
||||
|
||||
|
||||
if ( name.isEmpty() )
|
||||
{
|
||||
std::map<QString,Logger*>::iterator it;
|
||||
@@ -99,7 +99,7 @@ Logger::Logger ( QString name, LogLevel minLevel )
|
||||
const char* _appname_char = getprogname();
|
||||
#endif
|
||||
_appname = QString(_appname_char).toLower();
|
||||
|
||||
|
||||
|
||||
loggerCount++;
|
||||
|
||||
@@ -111,7 +111,7 @@ Logger::Logger ( QString name, LogLevel minLevel )
|
||||
|
||||
Logger::~Logger()
|
||||
{
|
||||
Debug(this, "logger '%s' destroyed", QSTRING_CSTR(_name) );
|
||||
//Debug(this, "logger '%s' destroyed", QSTRING_CSTR(_name) );
|
||||
loggerCount--;
|
||||
if ( loggerCount == 0 )
|
||||
closelog();
|
||||
|
Reference in New Issue
Block a user