All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
1.5.0 - 2017-04-28
IsSystemdService
to detect if running as a systemd service.
- Ignore SIGPIPE for systemd, reverts #15 (#17).
1.4.2 - 2017-04-26
- Exit abnormally upon SIGPIPE (#15).
1.4.1 - 2017-03-01
- Fix
NewEnvironment
documentation. - Ignore SIGPIPE for systemd (#13).
1.4.0 - 2016-09-10
BackgroundWithID
creates a new context inheriting the request ID.Graceful
for Windows to make porting easy, though it does not restart.
- Fix Windows support by @mattn.
- Fix a subtle data race in
Graceful
.
1.3.0 - 2016-09-02
GoWithID
starts a goroutine with a new request tracking ID.
Go
no longer issues new ID automatically. UseGoWithID
instead.
1.2.0 - 2016-08-31
Graceful
for network servers to implement graceful restart.SystemdListeners
returns[]net.Listener
for systemd socket activation.
- Optimize
IDGenerator
performance. Server.Handler
closes connection.- Lower
Environment.Wait
log to debug level.
1.1.0 - 2016-08-24
IDGenerator
generates UUID-like ID string for request tracking.Go
issues new request tracking ID and store it in the derived context.HTTPClient
, a wrapper forhttp.Client
that exports request tracking ID and logs results.LogCmd
, a wrapper forexec.Cmd
that records command execution results together with request tracking ID.
HTTPServer
adds or imports request tracking ID for every request.Server
adds request tracking ID for each new connection.- Install signal handler only for the global environment.
Context
method ofEnvironment
is removed. It was a design flaw.
1.0.1 - 2016-08-22
- Update docs.
- Use cybozu-go/netutil.
- Conform to cybozu-go/log v1.1.0 spec.