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 {
* @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());
......
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