diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-08-29 16:16:48 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-08-30 08:47:21 -0600 |
commit | a423506252312b2affff59334d36ad6c5471d013 (patch) | |
tree | 18badadf8bdf1b77b93932b947a352e5591ddf2b /ringlogger | |
parent | version: use ProductName and ProductVersion as strings (diff) | |
download | wireguard-windows-a423506252312b2affff59334d36ad6c5471d013.tar.xz wireguard-windows-a423506252312b2affff59334d36ad6c5471d013.zip |
version: hard code name and version at compile time
We really do want the true name and version in logs so that external
consumers have a good reference point for helping us debug.
We can then do the log file directory explicitly.
Diffstat (limited to 'ringlogger')
-rw-r--r-- | ringlogger/dump.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ringlogger/dump.go b/ringlogger/dump.go index 53e67eeb..05a9b27f 100644 --- a/ringlogger/dump.go +++ b/ringlogger/dump.go @@ -12,8 +12,8 @@ import ( "golang.org/x/sys/windows" "golang.org/x/sys/windows/registry" + "golang.zx2c4.com/wireguard/windows/conf" - "golang.zx2c4.com/wireguard/windows/version" ) func DumpTo(out io.Writer, localSystem bool) error { @@ -39,8 +39,7 @@ func DumpTo(out io.Writer, localSystem bool) error { if err != nil { return err } - name, _ := version.RunningNameVersion() - path = filepath.Join(systemprofile, "AppData", "Local", name, "log.bin") + path = filepath.Join(systemprofile, "AppData", "Local", "WireGuard", "log.bin") } file, err := os.Open(path) if err != nil { |