Cannot unmarshal array into Go value of type base.Level -- rest.ParseCommandLine()

Hi,

I’m french and my english is very bad. I’ll hope you understand my problem.

My admin installed a new server version (Entreprise Edition 5.5.2) and a new sync gateway version (1.5.2).

When I restart the gateway, I’ve an error “cannot unmarshal array into Go value of type base.Level – rest.ParseCommandLine()”.

I think that the description of json config file isn’t the same in this new version but I’m not sure

so, I need help

Tahnk’s

----------------------------------My config.json file-------------------------------------------

{

“interface”:“0.0.0.0:21221”,
“adminInterface”:“0.0.0.0:21222”,
“SSLCert”:"/home/csgadm/gateway/conf/keystores/server-cert.pem",
“SSLKey”:"/home/csgadm/gateway/conf/keystores/server-key.pem",
“databases”:{
“sync_dev”:{
“server”:“http://vd2671:8091”,
“bucket”:“sync_dev”,
“username”:“sync_dev”,
“password”:“sync_dev1”,
“sync”: function(doc, oldDoc){ if (_.contains(["MatriceSF"], doc._id)){ throw( {forbidden: "read only!"} ) } channel(doc.channels); },
“users”: {
“GUEST”: {“disabled”: true},
“batchadv” : {
“name”: “batchadv”,
“password”: “batchadv”,
“admin_channels”: [
"
]
},
“ihmadv” : {
“name”: “ihmadv”,
“password”: “ihmadv”,
“admin_channels”: [
"

]
}
}
},
“sync_rec”:{
“server”:“http://vd2671:8091”,
“bucket”:“sync_rec”,
“username”:“sync_rec”,
“password”:“sync_rec”,
“sync”:function(doc) {channel(doc.channels);},
“users”: {
“GUEST”: {“disabled”: true},
“batchadv” : {
“name”: “batchadv”,
“password”: “batchadv”,
“admin_channels”: [
"
]
},
“ihmadv” : {
“name”: “ihmadv”,
“password”: “ihmadv”,
“admin_channels”: [
"

]
}
}
}
},
“logging” : {
“default” : {
“logFilePath”:"/home/csgadm/gateway/logs/gateway.log",
“logKeys”:["*"],
“logLevel”:[“debug”],
“rotation”:{
“maxsize”:1,
“maxage”:30,
“maxbackups”:5,
“localtime”:true
}
}
}
}

----------------------------------end of my config.json file-------------------------------------------------------------

Thanks

Hi,

The logLevel config property takes a single string as a value, not an array.

E.g: "logLevel": "debug"