-
Notifications
You must be signed in to change notification settings - Fork 370
Conversation
Merge from base
merge from base
I think it makes the log a bit ugly, but maybe others will disagree. |
In the future, if the number of code in IOTA is growing really fast, and there are distributed deployment, without the line number, it will be really inefficient to triage bugs. That's my opinion. |
You could truncate the classname given the common prefix ( |
Yes. The first will be the file name, but every file will have a suffix ".java". Which one will be better? |
Definitely the second one |
+1 for the second one. I like the line numbers. |
Hello, @GalRogozinski @legacycode @th0br0, would you please review the code? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM:
03/01 07:09:42.244 [main] INFO IRI$IRILauncher:176 - Configuration is created using command line args only 03/01 07:09:42.262 [main] INFO IRI$IRILauncher:177 - parsed the following cmd args: [--testnet, -p, 14265, --remote] 03/01 07:09:42.264 [main] INFO IRI$IRILauncher:111 - Welcome to IRI Testnet 1.6.0-RELEASE 03/01 07:09:43.741 [main] INFO RocksDBPersistenceProvider:62 - Initializing Database on spent-addresses-db 03/01 07:09:44.287 [main] INFO RocksDBPersistenceProvider:65 - RocksDB persistence provider initialized. 03/01 07:09:44.288 [main] INFO LatestMilestoneTrackerImpl:168 - Latest milestone has changed from #0 to #434525 03/01 07:09:44.723 [main] INFO RocksDBPersistenceProvider:62 - Initializing Database on testnetdb 03/01 07:09:44.753 [main] INFO RocksDBPersistenceProvider:65 - RocksDB persistence provider initialized. 03/01 07:09:44.758 [main] INFO UDPReceiver:53 - UDP replicator is accepting connections on udp port 14600 03/01 07:09:44.759 [main] INFO Replicator:42 - Started ReplicatorSourcePool 03/01 07:09:44.759 [UDP receiving thread] INFO UDPReceiver:63 - Spawning Receiver Thread
@GalRogozinski @kwek20 @legacycode @th0br0, would anyone of you like to merge it? This pr has been lasting for many days ... :) |
Description
print out the line number in log info. It will be convenient for debugging.
For example, the output will be changed from
02/26 19:25:04.039 [main] INFO com.iota.iri.IRI$IRILauncher - Welcome to IRI Testnet 1.6.1-RELEASE
to
02/26 19:25:04.039 [main] INFO com.iota.iri.IRI$IRILauncher:117 - Welcome to IRI Testnet 1.6.1-RELEASE
Fixes #1361
Type of change
How Has This Been Tested?
compare the log output between before and after modification.
Checklist: