Skip to content

Commit

Permalink
Merge pull request #73 from digitalocean/hlee/update-log-fmt-and-buil…
Browse files Browse the repository at this point in the history
…d-flag

Update log format and build flag
  • Loading branch information
house-lee authored Mar 1, 2023
2 parents dde65fb + 9ebaf7e commit 02ff649
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

## [Unreleased](https://github.com/digitalocean/droplet-agent/tree/HEAD)

## [1.2.5](https://github.com/digitalocean/droplet-agent/tree/1.2.5) (2023-02-28)
### Updated
- Use Lshortfile flag when using syslog
- Added `-trimpath` build flag

### Related PRs
- Update log format and build flag [\#73](https://github.com/digitalocean/droplet-agent/pull/73)


## Support AlmaLinux (2022-10-06)
### Updated
- Add support for installing the agent on AlmaLinux (NOTE: no new version is introduced as there are not any changes made to the binary)
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ build: $(binary)
$(binary): $(gofiles)
$(print)
$(mkdir)
$(go) build -ldflags $(ldflags) -o "$@" ./cmd/agent/
$(go) build -ldflags $(ldflags) -trimpath -o "$@" ./cmd/agent/

shellcheck: $(cache)/shellcheck
$(cache)/shellcheck: $(shellscripts)
Expand Down
2 changes: 1 addition & 1 deletion internal/config/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

package config

const version = "v1.2.4"
const version = "v1.2.5"
2 changes: 1 addition & 1 deletion internal/log/syslog.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

const (
syslogFlags = log.Llongfile
syslogFlags = log.Lshortfile
)

var once sync.Once
Expand Down

0 comments on commit 02ff649

Please sign in to comment.