[info] output should go to /dev/stdout instead of /dev/stderr

Bug #1465192 reported by Yvan Masson on 2015-06-15
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ocsinventory-agent (Ubuntu)

Bug Description

Dear maintainers,

I am running ocsinventory-agent with anacron like this :
 # ocsinventory-agent 1> /dev/null

I would expect output only if there is an error, so that I am notified only if there is a problem. Instead, the agent always returns some "debug" output on /dev/stderr, which leads my email to be spammed.

Here is the output I get if I run the command line above :
# ocsinventory-agent 1> /dev/null
[info] No support detected. Registration key: N/A
[info] [download] Download is off.
[info] [download] Beginning work. I am 4298.
[info] [download] Option turned off. Exiting.

I am running Ubuntu 14.04 amd64, ocsinventory-agent is version 2:2.0.5-1.

The configuration is almost the default one, I only changed the server FQDN.

/etc/ocsinventory/modules.conf :
 # this list of module will be loaded by the agent at run time
 # to check its syntax do:
 # $perl modules.conf
 # You must have NO error. Else the content will be ignored

 use Ocsinventory::Agent::Modules::Download;

 # DO NO REMOVE the 1;



To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers