all: some improvements for better troubleshooting

- Include version/OS information when logging
 - Make time field human readable in log file
 - Force root privilege when running status command on darwin

Updates #34
This commit is contained in:
Cuong Manh Le
2023-03-29 12:36:19 +07:00
committed by Cuong Manh Le
parent 9927803497
commit b3a342bc44
4 changed files with 39 additions and 9 deletions

1
go.mod
View File

@@ -4,6 +4,7 @@ go 1.19
require (
github.com/coreos/go-systemd/v22 v22.3.3-0.20220203105225-a9a7ef127534
github.com/cuonglm/osinfo v0.0.0-20230329055532-c513f836da19
github.com/frankban/quicktest v1.14.3
github.com/fsnotify/fsnotify v1.6.0
github.com/go-playground/validator/v10 v10.11.1