AuthLogger causes messages from using apps/libraries to go to authentication.log as well
Bug #1175289 reported by
dobey
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntuone-credentials (Ubuntu) |
Fix Released
|
High
|
dobey |
Bug Description
Due to the way the logging APIs in Qt work, the implementation of a thin wrapper API to implement a singleton log message handler in libubuntuoneauth results in all messages in the running program, going to the same log file. We need a solution so that only the appropriate messages from the library itself go here, and other log messages go to their respectively correct places.
Related branches
lp:~dobey/ubuntuone-credentials/no-log-file
- Mike McCracken (community): Approve
- PS Jenkins bot: Approve (continuous-integration)
-
Diff: 161 lines (+27/-53)5 files modifieddebian/libubuntuoneauth-2.0-0.symbols (+2/-1)
libubuntuoneauth/logging.cpp (+16/-27)
libubuntuoneauth/logging.h (+5/-5)
libubuntuoneauth/tests/test_logging.cpp (+3/-15)
libubuntuoneauth/tests/test_logging.h (+1/-5)
tags: | added: u1-notrack |
summary: |
- AuthLogger causes messages from using apps/libarries to go to + AuthLogger causes messages from using apps/libraries to go to authentication.log as well |
Changed in ubuntuone-credentials: | |
importance: | Undecided → High |
assignee: | nobody → Rodney Dawes (dobey) |
status: | Triaged → In Progress |
affects: | ubuntuone-credentials → ubuntuone-credentials (Ubuntu) |
Changed in ubuntuone-credentials (Ubuntu): | |
assignee: | Rodney Dawes (dobey) → nobody |
assignee: | nobody → Rodney Dawes (dobey) |
Changed in ubuntuone-credentials (Ubuntu): | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
Importing UbuntuOne disables: qWarn, qDebug, console.log, QML errors ubuntuone/ log/authenticat ion.log
Setting U1_DEBUG=1 re-enables console output for qDebug and console.log. It additionally logs all messages to ~/.cache/