input log
This commit is contained in:
snoop 2017-06-09 17:19:40 +09:00
parent 05fc841c1a
commit a8cc8008db

View File

@ -19,6 +19,7 @@ import (
"git.loafle.net/overflow/overflow_proxy_service/proxy/sensorItem" "git.loafle.net/overflow/overflow_proxy_service/proxy/sensorItem"
"git.loafle.net/overflow/overflow_proxy_service/proxy/sensorItemCategory" "git.loafle.net/overflow/overflow_proxy_service/proxy/sensorItemCategory"
"git.loafle.net/overflow/overflow_proxy_service/proxy/sensorItemMapping" "git.loafle.net/overflow/overflow_proxy_service/proxy/sensorItemMapping"
"log"
) )
var g_services map[string]interface{} var g_services map[string]interface{}
@ -98,6 +99,7 @@ func convertParam(sn interface{}, param map[string]string) {
paramStr := param["model"] paramStr := param["model"]
// service converting // service converting
log.Println("input model : ", paramStr)
err := json.Unmarshal([]byte(paramStr), sn) err := json.Unmarshal([]byte(paramStr), sn)
if err != nil { if err != nil {
glog.Fatal("Json Unmarshal Failed : ", err.Error()) glog.Fatal("Json Unmarshal Failed : ", err.Error())