play.Logger.warn()

Here are the examples of the java api play.Logger.warn() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

18 Source : MapItemId2InfoExpander.java
with MIT License
from grouplens

public List<ObjectNode> expand(List<ObjectNode> initialResult, RequestContext requestContext) {
    for (ObjectNode enreplacedy : initialResult) {
        if (enreplacedy.has(idField)) {
            String key = enreplacedy.get(idField).asText();
            if (model.containsKey(key)) {
                IOUtilities.parseEnreplacedyFromJsonNode(infoFields, model.get(key), enreplacedy);
            } else {
                Logger.warn("{} is not present in item2info with item {} and infos {}.", key, idField, infoFields);
            }
        } else {
            Logger.warn("{} is not present in {}", idField, enreplacedy);
        }
    }
    return initialResult;
}

18 Source : ArrayItemId2InfoExpander.java
with MIT License
from grouplens

public List<ObjectNode> expand(List<ObjectNode> initialResult, RequestContext requestContext) {
    for (ObjectNode enreplacedy : initialResult) {
        if (enreplacedy.has(idField)) {
            int idx = enreplacedy.get(idField).asInt();
            if (model.size() <= idx || model.get(idx) == null) {
                Logger.warn("No such item id {} in the item info model with size {}", idx, model.size());
            } else {
                IOUtilities.parseEnreplacedyFromJsonNode(infoFields, model.get(idx), enreplacedy);
            }
        } else {
            Logger.error("{} is not present in {}", idField, enreplacedy);
        }
    }
    return initialResult;
}