Project

General

Profile

Actions

Task #2209

closed

Improve logging - don't log SEVERE when there is no error

Added by Alena Peterová over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Roman Kučera
Target version:
Start date:
04/15/2020
Due date:
% Done:

100%

Estimated time:
Owner:

Description

The connector always logs a SEVERE line, even if there is no error:

Apr 15, 2020 6:05:00 PM net.tirasa.connid.bundles.cmd.methods.CmdExec waitFor(CmdExec.java:127)
SEVERE: Script error:

I think this should be logged as an error only if it the error output isn't empty.
CmdExec.java, method waitFor:
LOG.error("Script error:\n{0}", error);

Actions

Also available in: Atom PDF