summaryrefslogtreecommitdiffstats
path: root/common/log.cpp
Commit message (Collapse)AuthorAge
* Fixed possible deadlock if we get a debug message in the wrong momentChristian Mollekopf2018-08-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was the problematic backtrace (the qsettigns lockfile resulted in a message that tried to acquire the lock again. Thread 1 (Thread 0x7f00417aee00 (LWP 530)): 0 0x00007f003eb9cae9 in syscall () from /lib64/libc.so.6 1 0x00007f003f85d22d in QBasicMutex::lockInternal() () from /lib64/libQt5Core.so.5 2 0x00007f0040ebce51 in QMutexLocker::QMutexLocker (this=0x7ffdb83e4678, m=0x7f004175ff40 <(anonymous namespace)::Q_QGS_sDebugAreaCollector::innerFunction()::holder>) at /usr/include/qt5/QtCore/qmutex.h:206 3 0x00007f00410ab681 in DebugAreaCollector::add (this=0x7f004175ff40 <(anonymous namespace)::Q_QGS_sDebugAreaCollector::innerFunction()::holder>, area="caldavresource.default") at /src/sink/common/log.cpp:269 4 0x00007f00410a6f4b in collectDebugArea (debugArea="caldavresource.default") at /src/sink/common/log.cpp:296 5 0x00007f00410a5b44 in Sink::Log::debugStream (debugLevel=Sink::Log::Warning, line=0, file=0x0, function=0x0, debugArea=0x7f003fabdfa0 "default", debugComponent=0x0) at /src/sink/common/log.cpp:379 6 0x0000000000406d8d in qtMessageHandler (type=QtWarningMsg, context=..., msg="Could not remove our own lock file \"/home/developer/.qttest/share/sink/debugAreas.ini.lock\" maybe permissions changed meanwhile?") at /src/sink/synchronizer/main.cpp:162 7 0x00007f003f8509be in qt_message_print(QtMsgType, QMessageLogContext const&, QString const&) () from /lib64/libQt5Core.so.5 8 0x00007f003f8529ec in qt_message_output(QtMsgType, QMessageLogContext const&, QString const&) () from /lib64/libQt5Core.so.5 9 0x00007f003f93eb40 in QDebug::~QDebug() () from /lib64/libQt5Core.so.5 10 0x00007f003f9b55ba in QLockFile::unlock() () from /lib64/libQt5Core.so.5 11 0x00007f003f959ffd in QLockFile::~QLockFile() () from /lib64/libQt5Core.so.5 12 0x00007f003f98f4e3 in QConfFileSettingsPrivate::syncConfFile(QConfFile*) () from /lib64/libQt5Core.so.5 13 0x00007f003f98fcee in QConfFileSettingsPrivate::sync() () from /lib64/libQt5Core.so.5 14 0x00007f003f985df9 in QSettings::~QSettings() () from /lib64/libQt5Core.so.5 15 0x00007f00410a8cd1 in QtSharedPointer::ExternalRefCountWithContiguousData<QSettings>::deleter (self=0x17e2890) at /usr/include/qt5/QtCore/qsharedpointer_impl.h:255 16 0x00007f0040e7092b in QtSharedPointer::ExternalRefCountData::destroy (this=0x17e2890) at /usr/include/qt5/QtCore/qsharedpointer_impl.h:157 17 0x00007f00410a8e2d in QSharedPointer<QSettings>::deref (dd=0x17e2890) at /usr/include/qt5/QtCore/qsharedpointer_impl.h:461 18 0x00007f00410a8de9 in QSharedPointer<QSettings>::deref (this=0x7ffdb83e4ea8) at /usr/include/qt5/QtCore/qsharedpointer_impl.h:456 19 0x00007f00410a8b75 in QSharedPointer<QSettings>::~QSharedPointer (this=0x7ffdb83e4ea8) at /usr/include/qt5/QtCore/qsharedpointer_impl.h:313 20 0x00007f00410a9f23 in DebugAreaCollector::~DebugAreaCollector (this=0x7f004175ff40 <(anonymous namespace)::Q_QGS_sDebugAreaCollector::innerFunction()::holder>) at /src/sink/common/log.cpp:264 21 0x00007f00410a76b9 in (anonymous namespace)::Q_QGS_sDebugAreaCollector::innerFunction()::Holder::~Holder() (this=0x7f004175ff40 <(anonymous namespace)::Q_QGS_sDebugAreaCollector::innerFunction()::holder>) at /src/sink/common/log.cpp:283 22 0x00007f003eae172c in __run_exit_handlers () from /lib64/libc.so.6 23 0x00007f003eae185c in exit () from /lib64/libc.so.6 24 0x00007f003eacb252 in __libc_start_main () from /lib64/libc.so.6 25 0x00000000004064da in _start () Closes https://phabricator.kde.org/T9435
* Small optimizationChristian Mollekopf2018-07-30
|
* Fixed debug output printing on windowsChristian Mollekopf2018-05-19
|
* sDebugStream now supports debug messages on windows.Christian Mollekopf2018-05-18
|
* Don't use color on windows was the idea.Christian Mollekopf2018-05-18
|
* Log to OutputDebugString on windowsChristian Mollekopf2018-05-18
|
* Print to QDebug on windowsChristian Mollekopf2018-05-16
|
* Windows compatChristian Mollekopf2018-04-19
|
* Fixed log pattern matchingChristian Mollekopf2017-12-28
|
* Use Q_GLOBAL_STATIC for threadsafety.Christian Mollekopf2017-08-31
| | | | | This resolves the following warning on shutdown it seems: "QObject::connect: No such signal QObject::aboutToClose() in ../../include/QtCore/5.9.1/QtCore/private/../../../../../src/corelib/io/qtextstream_p.h:75"
* Avoid use after destructionChristian Mollekopf2017-08-28
|
* use Q_GLOBAL_STATICChristian Mollekopf2017-08-28
| | | | In an attempt to resolve T6890.
* Completely shortcut the stream evaluation if we're not going to use theChristian Mollekopf2017-05-12
| | | | | | | | | output Serializing the data is the expensive part, so we want to completely avoid that for the noisier part if we're not going to use it. Additionally we're now using a stringbuilder for the debugarea to try to further improve the situation with temporary memory allocations.
* Allow substring matches on the trace identifierChristian Mollekopf2017-05-12
|
* Only use the filename as area, not the full path.Christian Mollekopf2017-05-12
|
* Fixed buildChristian Mollekopf2017-05-12
|
* Avoid recreating the settings object on every log callChristian Mollekopf2017-05-11
|
* handle all enum valuesMarco Martin2017-04-11
| | | | fix build, add a default handler in the switch
* Debug outputChristian Mollekopf2017-01-07
|
* Always print non-trace messagesChristian Mollekopf2016-12-06
|
* Dynamically grow the area widthChristian Mollekopf2016-07-11
| | | | Instead of blindly shortening the area.
* Separate config from data and define centrallyChristian Mollekopf2016-07-08
|
* sinksh trace command including autocompletionChristian Mollekopf2016-07-07
| | | | | The sinksh command allows to easily turn tracing for certain areas on or off.
* A new debug system.Christian Mollekopf2016-07-07
| | | | | | | | | | | | | | | Instead of a single #define as debug area the new system allows for an identifier for each debug message with the structure component.area. The component is a dot separated identifier of the runtime component, such as the process or the plugin. The area is the code component, and can be as such defined at compiletime. The idea of this system is that it becomes possible to i.e. look at the output of all messages in the query subsystem of a specific resource (something that happens in the client process, but in the resource-specific subcomponent). The new macros are supposed to be less likely to clash with other names, hence the new names.
* Prepared sinksh traceChristian Mollekopf2016-07-07
|
* Fromatted the whole codebase with clang-format.Christian Mollekopf2016-03-03
| | | | clang-format -i */**{.cpp,.h}
* Do use spaces and quotes on all messages.Christian Mollekopf2016-02-05
|
* Use a config file instead of environment variables for log settings.Christian Mollekopf2016-02-05
| | | | | | | | qputenv only modifies the env of the current process, so akonadish didn't work at all to change the settings. We might have to do some performance optimizations at some point, but for the time being this works.
* Logging cleanupChristian Mollekopf2016-02-05
|
* Set debug outputChristian Mollekopf2016-02-05
|
* Filter debug output by program name and areaChristian Mollekopf2016-02-04
|
* Log: fixed colors, updated output format and introduced debug areasChristian Mollekopf2016-02-03
|
* Enabled and fixed a bunch of warningsChristian Mollekopf2016-01-31
|
* Renamed Akonadi2 to SinkChristian Mollekopf2016-01-20
| | | | (except for documentation).
* more helpersAaron Seigo2016-01-10
|
* CleanupChristian Mollekopf2015-10-21
|
* Color log messagesChristian Mollekopf2015-10-20
|
* A way to set the debuglevel.Christian Mollekopf2015-08-13
| | | | | | Unittests can set the level themselves (so i.e. benchmarks don't print a shitload of messages), while in normal operation we can set it from the environment. There's no override currently, but first things first.
* Warning on command failure, null debugstream to ignore messagesChristian Mollekopf2015-07-23
|
* LoggingChristian Mollekopf2015-05-01
|
* Colorized debug output a bitChristian Mollekopf2015-04-15
|
* Resource crashhandler and logging facilities.Christian Mollekopf2015-03-31