public void error(String message, Object... args) { error(message, null, args); }
protected void handleResultOnFinish(OperationStatus operation, String finishMessage) { OperationResult result = operation.getResult(); result.recomputeStatus(); if (result.isAcceptable()) { log.info("{} in {}s. {}", finishMessage, NinjaUtils.DECIMAL_FORMAT.format(operation.getTotalTime()), operation.print()); } else { log.error("{} in {}s with some problems, reason: {}. {}", finishMessage, NinjaUtils.DECIMAL_FORMAT.format(operation.getTotalTime()), result.getMessage(), operation.print()); if (context.isVerbose()) { log.error("Full result\n{}", result.debugDumpLazily()); } } }
queue.put(object); } catch (InterruptedException ex) { log.error("Couldn't queue object {}, reason: {}", ex, object, ex.getMessage()); repository.searchObjectsIterative(type.getClassDefinition(), query, handler, optionsBuilder.build(), true, operation.getResult()); } catch (SchemaException ex) { log.error("Unexpected exception, reason: {}", ex, ex.getMessage()); } catch (NinjaException ex) { log.error(ex.getMessage(), ex); } finally { markDone();
context.getLog().error("Couldn't add object {}, reason: {}", ex, object, ex.getMessage()); operation.incrementError();
context.getLog().error("Couldn't delete object {}, reason: {}", ex, prismObject, ex.getMessage()); operation.incrementError();