I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit e45413d4 authored by zzz's avatar zzz
Browse files

Update: Don't log an error for the "dummy" updater (ticket #1525)

parent 11c32301
No related branches found
No related tags found
No related merge requests found
...@@ -973,8 +973,9 @@ public class ConsoleUpdateManager implements UpdateManager, RouterApp { ...@@ -973,8 +973,9 @@ public class ConsoleUpdateManager implements UpdateManager, RouterApp {
* @param t may be null * @param t may be null
*/ */
public void notifyTaskFailed(UpdateTask task, String reason, Throwable t) { public void notifyTaskFailed(UpdateTask task, String reason, Throwable t) {
if (_log.shouldLog(Log.ERROR)) int level = task.getType() == TYPE_DUMMY ? Log.WARN : Log.ERROR;
_log.error("Failed " + task + " for " + task.getType() + ": " + reason, t); if (_log.shouldLog(level))
_log.log(level, "Failed " + task + " for " + task.getType() + ": " + reason, t);
List<RegisteredUpdater> toTry = _downloaders.get(task); List<RegisteredUpdater> toTry = _downloaders.get(task);
if (toTry != null) { if (toTry != null) {
UpdateItem ui = new UpdateItem(task.getType(), task.getID()); UpdateItem ui = new UpdateItem(task.getType(), task.getID());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment