Added an exception handler to JobProcessor.

This commit is contained in:
Daniel Stolt
2014-03-22 17:21:50 +01:00
parent 871e5c9021
commit 3fa9bce1ec

View File

@@ -156,9 +156,12 @@ namespace Orchard.Azure.MediaServices.Services.Jobs {
}
}
}
catch (Exception ex) {
Logger.Error(ex, "Error during sweep.");
}
finally {
Logger.Debug("Ending sweep.");
Monitor.Exit(_sweepLock);
Logger.Debug("Ending sweep.");
}
}
}