public static void error(Logger logger, Query query, String msg) {
        if (query != null)
            query.trace(logger.getName() + ": " + msg, true, TRACELEVEL);
        logger.severe(logger.getName() + ": " + msg);
    }
Print error message

@param logger Logger used for this msg
@param query Query object from searcher
@param msg Error message
container-search/src/main/java/com/yahoo/search/query/rewrite/RewriterUtils.java