-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #4963 +/- ##
===========================================
- Coverage 61% 60.62% -0.38%
===========================================
Files 350 350
Lines 28346 28352 +6
Branches 2883 3210 +327
===========================================
- Hits 17293 17189 -104
- Misses 10085 10204 +119
+ Partials 968 959 -9 |
There's some problem with formatting
Both |
This is fixed now |
Tests fail on macos, I need to do something with it |
Should be fixed now. |
…, ctrace channels
…thout creating a logger
…d values - this will replace LogOutputStreamBase::append() methods
Rebased. |
Still some test failure/crashes happen sometimes on macos, I'll investigate it further |
Well I restarted it now 3 times and it doesn't reproduce. Also I can't reproduce it locally on mac. I'd like to merge it now like this then @chfast |
Ah no, now I got it again locally, here's the Release build stack
|
This should fix it #4992 |
I created an issue to track the rest of the tasks here after we merge #4984 |
clang 6 out-of-memory. |
Can't we hide boost headers somehow and compile them in single compilation unit only? This seem to be a beast. |
This PR accumulates all smaller PRs related to rewriting logging system using boost.log
Log.h
operator<<
for log stream to apply special formatting to logged values - this will replaceLogOutputStreamBase::append()
methodsclogSimple
toclog
ThreadContext
mechanism with some additional log context attributessetupLogging()
in all executablessetupLogging()
instead)cdebug
,clog
,cnote
,ctrace
or leave only one of themSummary of changes noticeable to user
warn
instead of✘
)LogTag
stream manipulator), primitive types likeint
s won't be colored; some others e.g.h256
stay colored though.std::string
s won't automatically add quotation marks around; they also won't be colored.cwarn << "Transaction hash" << hash << "already imported";
Now spaces need to be explicit likecwarn << "Transaction hash " << hash << " already imported";
I'll try to change this in all log messages, but I might miss some.LogChannel::debug == true
) - but this was working only for Windows, whereNDEBUG
macro is defined in debug, for other platforms debug channels were visible in Release, too. This difference is removed, channel visibility will depend only on filtering, but not on build type.Log message line will look like
(
eth
is the name of the thread,timer
is the name of the channel)