private static void log(String error) {
    LogHelper console = SessionState.getConsole();
    if (console != null) {
      console.printError(error);
    }
  }
Logger an error to console if available.
ql/src/java/org/apache/hadoop/hive/ql/hooks/LineageLogger.java