Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-49998

[UDF] console.log output isn't shown anywhere

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • Morpheus
    • 7.1.0
    • js-evaluator
    • None
    • 7.1.0-1869
    • 1

    Description

      create a udf with a basic console.log, as far as I can tell the logging statement is ignored, I am not quite sure where the output would go to, but it seems like this should be supported. Also I am not sure if this on the query or js-evaluator side, so assigning to js-evaluator to start

      function add(a,b)

      { console.log("adding"); return(a+b); }

      CREATE FUNCTION udf(...) LANGUAGE JAVASCRIPT AS "add" AT "logger";

      cbq> execute function udf(1,4);
      {
      "requestID": "4a023fdf-e6f5-49e8-bdda-c214971540e7",
      "signature": null,
      "results": [
      5
      ],
      "status": "success",
      "metrics":

      { "elapsedTime": "13.716891ms", "executionTime": "13.545922ms", "resultCount": 1, "resultSize": 1, "serviceLoad": 6 }

      }

      Attachments

        For Gerrit Dashboard: MB-49998
        # Subject Branch Project Status CR V

        Activity

          People

            abhishek.jindal Abhishek Jindal
            ajay.bhullar Ajay Bhullar
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty