Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-2932

HippoQueryTemplatePlugin logs too much on error level when a query is invalid

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Low
    • Resolution: Fixed
    • r2.06.07, r2.07.00
    • r2.06.12, r2.09.00
    • None
    • None

    Description

      An example stacktrace below. Just a simple one line warning would do imho. We can always log the complete stack on debug.

      30.07.2009 16:16:16 ERROR [org.hippoecm.frontend.editor.plugins.HippoQueryTemplatePlugin.<init>():82] invalid query statement. Revert to default statement Encountered "$" at line 1, column 19.
      Was expecting one of:
      "or" ...
      "and" ...
      "div" ...
      "idiv" ...
      "mod" ...
      "*" ...
      "return" ...
      "to" ...
      "where" ...
      "intersect" ...
      "union" ...
      "except" ...
      <Instanceof> ...
      <Castable> ...
      "/" ...
      "//" ...
      "=" ...
      "is" ...
      "!=" ...
      "<=" ...
      "<<" ...
      ">=" ...
      ">>" ...
      "eq" ...
      "ne" ...
      "gt" ...
      "ge" ...
      "lt" ...
      "le" ...
      "<" ...
      ">" ...
      "-" ...
      "+" ...
      "|" ...
      "[" ...
      <ForVariable> ...
      <LetVariable> ...
      <CastAs> ...
      <TreatAs> ...
      "," ...
      <OrderBy> ...
      <OrderByStable> ...
      for statement: for $v in return $v: Encountered "$" at line 1, column 19.
      Was expecting one of:
      "or" ...
      "and" ...
      "div" ...
      "idiv" ...
      "mod" ...
      "*" ...
      "return" ...
      "to" ...
      "where" ...
      "intersect" ...
      "union" ...
      "except" ...
      <Instanceof> ...
      <Castable> ...
      "/" ...
      "//" ...
      "=" ...
      "is" ...
      "!=" ...
      "<=" ...
      "<<" ...
      ">=" ...
      ">>" ...
      "eq" ...
      "ne" ...
      "gt" ...
      "ge" ...
      "lt" ...
      "le" ...
      "<" ...
      ">" ...
      "-" ...
      "+" ...
      "|" ...
      "[" ...
      <ForVariable> ...
      <LetVariable> ...
      <CastAs> ...
      <TreatAs> ...
      "," ...
      <OrderBy> ...
      <OrderByStable> ...

      Attachments

        Activity

          People

            Unassigned Unassigned
            bvdschans Bart van der Schans (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: