Skip to content

Commit

Permalink
reactor: Expose the seastar_logger
Browse files Browse the repository at this point in the history
The seastar logger can now be used for different uses than reports an
exceptions.

Signed-off-by: Amnon Heiman <[email protected]>
  • Loading branch information
amnonh committed Jul 25, 2016
1 parent 911874e commit 9e84391
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/reactor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ using namespace std::chrono_literals;
using namespace net;
using namespace seastar;

static seastar::logger seastar_logger("seastar");
seastar::logger seastar_logger("seastar");

std::atomic<lowres_clock::rep> lowres_clock::_now;
constexpr std::chrono::milliseconds lowres_clock::_granularity;
Expand Down
3 changes: 3 additions & 0 deletions core/reactor.hh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
#include <boost/range/irange.hpp>
#include "timer.hh"
#include "condition-variable.hh"
#include "util/log.hh"

#ifdef HAVE_OSV
#include <osv/sched.hh>
Expand Down Expand Up @@ -1436,4 +1437,6 @@ typename timer<Clock>::time_point timer<Clock>::get_timeout() {
return _expiry;
}

extern seastar::logger seastar_logger;

#endif /* REACTOR_HH_ */

0 comments on commit 9e84391

Please sign in to comment.