forked from I2P_Developers/i2p.i2p
Update: Don't log an error for the "dummy" updater (ticket #1525)
This commit is contained in:
@ -973,8 +973,9 @@ public class ConsoleUpdateManager implements UpdateManager, RouterApp {
|
||||
* @param t may be null
|
||||
*/
|
||||
public void notifyTaskFailed(UpdateTask task, String reason, Throwable t) {
|
||||
if (_log.shouldLog(Log.ERROR))
|
||||
_log.error("Failed " + task + " for " + task.getType() + ": " + reason, t);
|
||||
int level = task.getType() == TYPE_DUMMY ? Log.WARN : Log.ERROR;
|
||||
if (_log.shouldLog(level))
|
||||
_log.log(level, "Failed " + task + " for " + task.getType() + ": " + reason, t);
|
||||
List<RegisteredUpdater> toTry = _downloaders.get(task);
|
||||
if (toTry != null) {
|
||||
UpdateItem ui = new UpdateItem(task.getType(), task.getID());
|
||||
|
Reference in New Issue
Block a user