OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: Christophe999s on January 27, 2022, 07:49:08 PM

Title: 'errors' in log that aren't really errors
Post by: Christophe999s on January 27, 2022, 07:49:08 PM
Hi,

First of all, upgrade went smoothly, thanks for the hard work to all the devs!

Is there a reason why some entries in the general log are categorized as error, while they look like notifications to me?
For example:
2022-01-27T19:33:31   Error   opnsense   /usr/local/etc/rc.newwanip: ROUTING: IPv4 default gateway set to wan
2022-01-27T19:33:31   Error   opnsense   /usr/local/etc/rc.newwanip: ROUTING: keeping current default gateway 'x.x.x.x'
2022-01-27T19:33:31   Error   opnsense   /usr/local/etc/rc.newwanipv6: IPv6 renewal is starting on 'em0'
2022-01-27T19:33:34   Error   opnsense   /usr/local/etc/rc.newwanipv6: Dynamic DNS: (Success) IP Address Updated Successfully!

That last one gives off a task failed successfully vibe  ;)
Title: Re: 'errors' in log that aren't really errors
Post by: franco on January 27, 2022, 07:50:58 PM
Historically in the PHP code logging was done using the log_error() function, which, as you can guess.. logs everything in error severity. ;)

We're going to change it but it's not a pressing issue. Certainly not for a release that isn't even a day old.


Cheers,
Franco