Skip to content

Commit

Permalink
Fixed log error with % character
Browse files Browse the repository at this point in the history
  • Loading branch information
lvca committed Nov 5, 2014
1 parent e833b91 commit 126422d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
public abstract class OAbstractTransformer extends OAbstractETLPipelineComponent implements OTransformer {
@Override
public Object transform(final Object input) {
log(OETLProcessor.LOG_LEVELS.DEBUG, "Transformer input: " + input);
log(OETLProcessor.LOG_LEVELS.DEBUG, "Transformer input: %s", input);

if (input == null)
return null;
Expand All @@ -36,14 +36,14 @@ public Object transform(final Object input) {
context.setVariable("input", input);
final Object result = executeTransform(input);
if (output == null) {
log(OETLProcessor.LOG_LEVELS.DEBUG, "Transformer output: " + result);
log(OETLProcessor.LOG_LEVELS.DEBUG, "Transformer output: %s", result);
return result;
}

context.setVariable(output, result);
}

log(OETLProcessor.LOG_LEVELS.DEBUG, "Transformer output (same as input): " + input);
log(OETLProcessor.LOG_LEVELS.DEBUG, "Transformer output (same as input): %s", input);
return input;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public Object executeTransform(final Object input) {
ODocument doc;

if (!(input instanceof OIdentifiable)) {
log(OETLProcessor.LOG_LEVELS.DEBUG, "skip because input value is not a record");
log(OETLProcessor.LOG_LEVELS.DEBUG, "skip because input value is not a record, but rather an instance of class: %s", input.getClass());
return null;
}

Expand Down

0 comments on commit 126422d

Please sign in to comment.