gluster / gluster-subvol

Subdirectories of Gluster volumes as PVs in Kubernetes and OpenShift
Apache License 2.0
11 stars 6 forks source link

Add timestamp to each log message #20

Closed JohnStrunk closed 6 years ago

JohnStrunk commented 6 years ago

Example of new format:

Mar 07 13:57:00 [1520449020.290372728] > init
Mar 07 13:57:00 [1520449020.290372728] < 0 {"status": "Failure", "message": " Unable to create /var/lock/glfs-subvol"}

The old "static" ts is still there to record the start time of the script and to allow un-threading of simultaneous execution. All we do is prepend the day and time to each log line.

Closes #19