mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-10-12 01:58:46 +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:
1 parent
221917e80b
commit
89f7874fc6
1 file changed
+1
-1
@@ -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