Skip to content
Open
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
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,13 @@ func main() {
// scanner goes line by line. add counter
scanner := bufio.NewScanner(file)
for scanner.Scan() {
// new connection check string
if strings.Contains(scanner.Text(), "Starting desktop process for") {
// new connection check string => Update due to new log format in TV 14
if strings.Contains(scanner.Text(), "incoming session via") {
newConnLineMatch = line
s = verifyNewAlarm(s, newConnLineMatch, "connect")
}
// end session search string = "EndSession(): Session to"
if strings.Contains(scanner.Text(), "EndSession(): Session to") {
// end session search string => Update due to new log format in TV 14
if strings.Contains(scanner.Text(), "DesktopProcessControl::OnProcessTerminated:") {
newDiscLineMatch = line
s = verifyNewAlarm(s, newDiscLineMatch, "disconnect")
}
Expand Down