mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-08-10 13:20:33 +02:00
cmd/cli: normalize log path when sending log
So the correct log file that "ctrld run" process is writing logs to will be sent to server correctly.
This commit is contained in:
@@ -122,7 +122,7 @@ func (p *prog) logContent() ([]byte, error) {
|
|||||||
if p.cfg.Service.LogPath == "" {
|
if p.cfg.Service.LogPath == "" {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
buf, err := os.ReadFile(p.cfg.Service.LogPath)
|
buf, err := os.ReadFile(normalizeLogFilePath(p.cfg.Service.LogPath))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user