Uploaded image for project: 'Couchbase Mobile'
  1. Couchbase Mobile
  2. CM-182

No logs with invalid SGW config

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Major
    • 2.6.0
    • 2.6.0
    • SyncGateway
    • None

    Description

      SGW version : 2.6.0-84

      Steps to reproduce :

      1. Have above sg config
      2. Start the SGW config

      Result :

      1. SG fails to start
      2. No logs generated when it is invalid config

      Expected:

      1. It should display that config is invalid and it should display a message which key is invalid

      SGW config :

       

      {
          "interface": ":4984", 
          "logging": {
              "info": {
                  "rotation": {
                      "max_age": 30, 
                      "max_size": 1, 
                      "localtime": true
                  }, 
                  "enabled": true
              }, 
              "console": {
                  "rotation": {
                      "max_age": 30, 
                      "max_size": 1, 
                      "localtime": true
                  }, 
                  "log_level": "debug", 
                  "log_keys": [
                      "*"
                  ], 
                  "logKeys": [
                      "HTTP", 
                      "FAKE"
                  ]
              }, 
              "log_file_path": "/tmp/sg_logs", 
              "warn": {
                  "rotation": {
                      "max_age": 90, 
                      "max_size": 1, 
                      "localtime": true
                  }, 
                  "enabled": true
              }, 
              "error": {
                  "rotation": {
                      "max_age": 180, 
                      "max_size": 1, 
                      "localtime": true
                  }, 
                  "enabled": true
              }, 
              "debug": {
                  "rotation": {
                      "max_age": 30, 
                      "max_size": 1, 
                      "localtime": true
                  }, 
                  "enabled": true
              }
          }, 
          "adminInterface": "0.0.0.0:4985", 
          "databases": {
              "db": {
                  "username": "data-bucket", 
                  "num_index_replicas": 0, 
                  "password": "password", 
                  "bucket": "data-bucket", 
                  "server": "http://192.168.33.10:8091"
              }
          }
      }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sridevi.saragadam Sridevi Saragadam (Inactive)
            sridevi.saragadam Sridevi Saragadam (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty