Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#936 closed enhancement (worksforme)

Clearer exception from jobagent

Reported by: Johan Enell Owned by: Johan Enell
Priority: trivial Milestone:
Component: jobagent Version: trunk
Keywords: Cc:

Description

When doing a 'jobagent.sh info' on a jobagent I get a ConnectException and a stacktrace. Of course... But this is not what the user expect to get. A line just staying that the agent i stopped or information could not be retrieved would be much clearer.

Change History (4)

comment:1 by Johan Enell, 16 years ago

Component: corejobagent
Owner: changed from everyone to Johan Enell

comment:2 by Nicklas Nordborg, 16 years ago

Resolution: worksforme
Status: newclosed

This is probably because the log4j has been configured to print log messages to standard output. The regular output if the job agent isn't running is, when logging is disabled or printed to a file:

nicklas@auster:~/projects/eclipse/Base2/bin> ./jobagent.sh info
Getting info from job agent...
Exception when executing command info: Connection refused

and if the job agent is running:

nicklas@auster:~/projects/eclipse/Base2/bin> ./jobagent.sh info
Getting info from job agent...
Status:Running

comment:3 by Johan Enell, 16 years ago

Well once again i was testing with wrong version...

comment:4 by Nicklas Nordborg, 16 years ago

Milestone: BASE 2.7
Note: See TracTickets for help on using tickets.