Commit a0ea984b by Nilu

log errors in url shortner batch

parent 4c38c530
...@@ -26,9 +26,16 @@ public class URLShortnerBatch extends ORMBatch ...@@ -26,9 +26,16 @@ public class URLShortnerBatch extends ORMBatch
for (Job job : jobs) for (Job job : jobs)
{ {
try
{
job.createShortenedURL(); job.createShortenedURL();
LogMgr.log(URL_SHORTNER_BATCH, LogLevel.DEBUG2, "Setting Shortned URL to job : ", job); LogMgr.log(URL_SHORTNER_BATCH, LogLevel.DEBUG2, "Setting Shortened URL to job : ", job);
}
catch(StorageException | FieldException e)
{
LogMgr.log(LoggingArea.ALL, LogLevel.PROCESSING1, e, "Error while setting shortened URL to job : " + job);
}
} }
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment