Merge lp:~alan-griffiths/mir/fix-set_logger into lp:mir

Proposed by Alan Griffiths
Status: Merged
Approved by: Alan Griffiths
Approved revision: 2079
Merged at revision: 2082
Proposed branch: lp:~alan-griffiths/mir/fix-set_logger
Merge into: lp:mir
Diff against target: 12 lines (+1/-1)
1 file modified
src/common/logging/logger.cpp (+1/-1)
To merge this branch: bzr merge lp:~alan-griffiths/mir/fix-set_logger
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Cemil Azizoglu (community) Approve
Review via email: mp+242392@code.launchpad.net

Commit message

logging: enable global logger to be set

Description of the change

logging: enable global logger to be set

To post a comment you must log in.
Revision history for this message
Cemil Azizoglu (cemil-azizoglu) wrote :


review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/common/logging/logger.cpp'
--- src/common/logging/logger.cpp 2014-11-17 18:26:11 +0000
+++ src/common/logging/logger.cpp 2014-11-20 17:30:55 +0000
@@ -60,7 +60,7 @@
61void ml::set_logger(std::shared_ptr<Logger> const& new_logger)61void ml::set_logger(std::shared_ptr<Logger> const& new_logger)
63 if (!new_logger)63 if (new_logger)
64 {64 {
65 std::lock_guard<decltype(log_mutex)> lock{log_mutex};65 std::lock_guard<decltype(log_mutex)> lock{log_mutex};
66 the_logger = new_logger;66 the_logger = new_logger;


People subscribed via source and target branches