Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

add available context info to debug log file headers #607

Merged
merged 2 commits into from
Jun 11, 2018

Conversation

whilei
Copy link
Contributor

@whilei whilei commented May 29, 2018

Since version, context, and session data is available from common, let's use it in debug log files to provide additional context for interpreting debug logs.

Changes this:

Log file created at: 2018/05/28 22:06:40
Running on machine: node-geth-500-k969c
Binary: Built with gc go1.9.4 for linux/amd64
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg

To this:

Log file created at: 2018/05/29 07:15:11
Binary: Built with gc go1.9.2 for darwin/amd64
Context: VERSION=whilei.v5.3.0+22-58cea72[branch=feat/debug-log-with-version-header,commit=problem:-debug-log-files-lack-available-context-info,built=May/29Tue-07:14:48] GO=go1.9.2 GOOS=darwin GOARCH=amd64 SESSIONID=CAUt HOSTNAME=mh USER=ia MACHINE=a2c2f59f PID=18704
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg

@whilei whilei merged commit 18b49e9 into master Jun 11, 2018
@soc1c soc1c deleted the feat/debug-log-with-version-header branch June 19, 2019 12:30
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.

2 participants