Ignore:
Timestamp:
01/19/22 12:56:25 (3 years ago)
Author:
Edwin Eefting <edwin@datux.nl>
Branches:
master
Children:
ffaaf60
Parents:
892871d
Message:

fix network checks and log issue when hostname has -

File:
1 edited

Legend:

Unmodified
Added
Removed
  • npl/syn3/webint/src/log/syslog.php

    r892871d r9e573a2  
    4747                        {
    4848                                //if it doens't match its probably a 'repeat message'
    49                                 if (!preg_match("/(\w*) *(\w*) (..:..:..) (\w*) ([^ ]*): (\w*) (.*)/",$line,$matches))
    50                                         preg_match("/(\w*) *(\w*) (..:..:..) (\w*) (\w*) (.*)/",$line,$matches);
     49                                if (!preg_match("/(\w*) *(\w*) (..:..:..) ([-\w]*) ([^ ]*): (\w*) (.*)/",$line,$matches))
     50                                        preg_match("/(\w*) *(\w*) (..:..:..) ([-\w]*) (\w*) (.*)/",$line,$matches);
    5151
    5252                                list($bagger,$month,$day,$time,$host, $user,$prio, $message)=$matches;
Note: See TracChangeset for help on using the changeset viewer.