You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/parser.c
+16-10Lines changed: 16 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1674,11 +1674,17 @@ static int
1674
1674
verify_missing_fields (GLogItem*logitem) {
1675
1675
/* must have the following fields */
1676
1676
if (logitem->host==NULL)
1677
-
logitem->errstr=xstrdup ("IPv4/6 is required. You have to add format specifier '%h' [host (the client IP address, either IPv4 or IPv6)] to your log-format.");
1677
+
logitem->errstr=
1678
+
xstrdup
1679
+
("IPv4/6 is required. You have to add format specifier '%h' [host (the client IP address, either IPv4 or IPv6)] to your log-format.");
1678
1680
elseif (logitem->date==NULL)
1679
-
logitem->errstr=xstrdup ("A valid date is required. You have to add format specifier '%x' [Datetime] or '%d' [Date] and '%t' [Time] to your log-format.");
1681
+
logitem->errstr=
1682
+
xstrdup
1683
+
("A valid date is required. You have to add format specifier '%x' [Datetime] or '%d' [Date] and '%t' [Time] to your log-format.");
1680
1684
elseif (logitem->req==NULL)
1681
-
logitem->errstr=xstrdup ("A request is required. Your log-format is missing format specifier '%r' [The request line from the client] or combination of special format specifiers such as '%m', '%U', '%q' and '%H' to parse individual fields.");
1685
+
logitem->errstr=
1686
+
xstrdup
1687
+
("A request is required. Your log-format is missing format specifier '%r' [The request line from the client] or combination of special format specifiers such as '%m', '%U', '%q' and '%H' to parse individual fields.");
0 commit comments