Project

General

Profile

Actions

Bug #14563

closed

System Log - General Log Order Setting is not being respected when using Raw Logs

Added by Fred Lear about 2 years ago. Updated about 2 years ago.

Status:
Resolved
Priority:
Low
Category:
Logging
Target version:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Release Notes:
Default
Affected Plus Version:
23.05.1
Affected Architecture:
All

Description

No matter what the "Forward/Reverse Display" option in general System Log settings is set to, the logs are always displayed in forward direction unless changing "Forward/Reverse Display" for each specific log (from "General Logging Options Setting" to "Reverse").

To fix this the following change is required in "src/etc/inc/syslog.inc":

617c617
<       $sor = (config_path_enabled('syslog/reverse') || $grepreverse) ? "-r" : "";
---
>       $sor = (config_path_enabled('syslog', 'reverse') || $grepreverse) ? "-r" : "";

Not sure if "config_path_enabled('syslog/reverse')" should return the same result as "config_path_enabled('syslog', 'reverse')", but doesn't because some other bug in "config_path_enabled" function.

Actions

Also available in: Atom PDF