Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions pkg/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -965,18 +965,15 @@ func (p *ptpProcess) cmdRun(stdoutToSocket bool, pm *plugin.PluginManager) {

for scanner.Scan() {
output := scanner.Text()

if regexErr != nil || !logFilterRegex.MatchString(output) {
fmt.Printf("%s\n", output)
}
if p.name == chronydProcessName {
output = fmt.Sprintf("%s[%d]%s: %s", chronydProcessName, p.cmd.Process.Pid, p.messageTag, output)
}
output = pm.ProcessLog(p.name, output)
fmt.Printf("%s\n", output)
// for ts2phc from 4.2 onwards replace /dev/ptpX by actual interface name
output = fmt.Sprintf("%s\n", p.replaceClockID(output))
// for ts2phc, we need to extract metrics to identify GM state
if regexErr != nil || !logFilterRegex.MatchString(output) {
fmt.Printf("%s\n", output)
}
p.processPTPMetrics(output)
if p.name == ptp4lProcessName {
if strings.Contains(output, ClockClassChangeIndicator) {
Expand Down