Skip to content

No need to log start time if it's already being done on every line.#1427

Merged
jgarzik merged 1 commit intobitcoin:masterfrom
rebroad:StartTimeFix
Sep 4, 2012
Merged

No need to log start time if it's already being done on every line.#1427
jgarzik merged 1 commit intobitcoin:masterfrom
rebroad:StartTimeFix

Conversation

@rebroad
Copy link
Contributor

@rebroad rebroad commented Jun 6, 2012

No description provided.

@csyangchen
Copy link

I think the old one is preferred if I want to parse Startup time from log file, not caring whether or not the log file tracks timestamp.

PS: I think the timestamp format itself is a little bit redundant. Taking a significant fraction of the log file size.

@rebroad
Copy link
Contributor Author

rebroad commented Jun 6, 2012

@csyangchen if one is wanting to parse start up times from the log file with timestamps turned on, one wouldn't use the startup time line anyway, but the first line with "Bitcoin version", or the line after "Default data directory". The "startup time" line is entirely redundant with timestamps enabled.

@csyangchen
Copy link

@rebroad I agree with the point you made. However, a redundant line in debug won't hurt, just not worthy of a separate pull, IMO.

Previously (appeared at least in v0.6.0, fixed by now ) there is a duplicated timestamp output in main.cpp, on the recv message: "timestamp timestamp received: ...". That, I think, is a duplication worthy of fix, considering frequency of the recv message.

If we actually want a start time message, I think we should also provide a stop time message, so that users can parse the debug file and calculate the session time, when timestamp is not provided.

@Diapolo
Copy link

Diapolo commented Jun 7, 2012

@csyangchen The duplicate timestamps are fixed, I created a patch for this a few weeks ago. I also think this pull is unneeded.

@luke-jr
Copy link
Member

luke-jr commented Jun 8, 2012

It's not duplicate if you have logtimestamps disabled. Just because someone might be interested in a few cases where times matter, doesn't mean they want every line timestamped.

@luke-jr
Copy link
Member

luke-jr commented Jun 19, 2012

@rebroad , did you test this at all? It doesn't compile... -.-

luke-jr added a commit to luke-jr/bitcoin that referenced this pull request Jun 22, 2012
@rebroad
Copy link
Contributor Author

rebroad commented Jul 2, 2012

@luke-jr everything takes so long to compile on my laptop, as due to the way git works, it causes all file modification times to be changed, so make tried to recompile everything. If I could work out a way for make to use checksums instead of modification times, then my compiles wouldn't take so long, and I'd have tested this. thanks for the fix!

@Diapolo
Copy link

Diapolo commented Jul 2, 2012

I still think this one is no needed, your other current pulls that re-work debug-messages and stuff make far more sense.

@jgarzik
Copy link
Contributor

jgarzik commented Aug 1, 2012

ACK, for ever-so-slightly enhanced privacy

@BitcoinPullTester
Copy link

Automatic sanity-testing: FAILED MERGE, see http://jenkins.bluematt.me/pull-tester/8617052cb72f4ac96ce5f8dbf024d7cbf41f0351 for test log.

This pull does not merge cleanly onto current master

jgarzik pushed a commit that referenced this pull request Sep 4, 2012
No need to log start time if it's already being done on every line.
@jgarzik jgarzik merged commit 38e8f28 into bitcoin:master Sep 4, 2012
lateminer pushed a commit to lateminer/bitcoin that referenced this pull request Jan 22, 2019
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants