Discussion:
log value when parsing config file
Matus UHLAR - fantomas
2018-12-07 13:57:32 UTC
Permalink
Hello,

is there an easy way to log value of a variable when parsig config file?

I have problems with setting up @mynetworks reading from file
and would like to see if it works properly.

something like

log("value of \@mynetworks is: @mynetworks");


Thanks.
--
Matus UHLAR - fantomas, ***@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
On the other hand, you have different fingers.
Matus UHLAR - fantomas
2018-12-07 14:14:28 UTC
Permalink
Post by Matus UHLAR - fantomas
is there an easy way to log value of a variable when parsig config file?
and would like to see if it works properly.
something like
I was able to do it this way:

&Amavis::Util::do_log(0,"value of \@mynetworks is ".join(' ',@mynetworks));

however, the log was sent to terminal where I have started amavis, not to
system log.

Still better than nothing, but syslog would be better.
--
Matus UHLAR - fantomas, ***@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
99 percent of lawyers give the rest a bad name.
Loading...