Closed niccottrell closed 4 years ago
I think it's this line:
There's no "starting" in the 3.6 logs. How about
if ln == 0 or "starting :" in line or "starting:" in line:
``
There's no "starting" in the 3.6 logs.
@niccottrell The "starting" match is looking for known restarts, which is still correct for 3.6 (normally from an initandlisten thread).
However, the alternative example you found works as a fall back for finding the host and port details from another thread.
The current match checks even if the hostname is already set, but since only one hostname is reported I'll only check if hostname isn't already set.
Cheers, Stennie
Expected behavior
mloginfo should report the host name extracted from the logs
Actual/current behavior
unknown
Steps to reproduce the actual/current behavior
Run on a log file starting with:
output starts with:
Environment