QMessageLogContext::function
consistently for all qDebug
calls instead of explicitly logging __func__
in some places.
QMessageLogContext::function
consistently for all qDebug
calls instead of explicitly logging __func__
in some places.
The diff of last lines of logs for master and this pr with -debug=qt -nologtimestamps
:
0 [shutoff] Shutdown: done
1-[shutoff] GUI: shutdown : Shutdown finished
2-[main] GUI: ~InitExecutor : Stopping thread
3-[main] GUI: ~InitExecutor : Stopped thread
4+[shutoff] GUI: void InitExecutor::shutdown(): Shutdown finished
5+[main] GUI: virtual InitExecutor::~InitExecutor(): Stopping thread
6+[main] GUI: virtual InitExecutor::~InitExecutor(): Stopped thread
The output is more verbose.
What are benefits of this change?
Why InitExecutor::~InitExecutor()
destructor is virtual
?
qWarning()
calls?
-logsourcelocations
command-line option?
What are benefits of this change?
The idea is to clean up a bit (remove func) and make logging consistent.
Why
InitExecutor::~InitExecutor()
destructor isvirtual
?
Because base class has a virtual destructor?
How is this feature combined with
-logsourcelocations
command-line option?
Didn’t test, will check.
🐙 This pull request conflicts with the target branch and needs rebase.
Want to unsubscribe from rebase notifications on this pull request? Just convert this pull request to a “draft”.