When i deploy rails project with capstrinao, there were always a hex string at every line, like "82ced5e5". what is it use for?
INFO[82ced5e5]
DEBUG[b2d2eb7c]
When i deploy rails project with capstrinao, there were always a hex string at every line, like "82ced5e5". what is it use for?
INFO[82ced5e5]
DEBUG[b2d2eb7c]
It actually comes from Sshkit's logging. Start down the rabbit hole here:
https://github.com/capistrano/sshkit/blob/master/lib/sshkit/formatters/pretty.rb
You get the same hex code for related output allowing you to identify easily corresponding commands for example the following start and finish commands
followed some time later with the potential for a lot of other output in between by
Making it simple to determine which command has just finished.
This is just a simple example but should be enough to demonstrate the usefulness of the hex code