mirror of
https://github.com/gravitl/netmaker.git
synced 2025-02-27 17:42:57 +08:00
log add
This commit is contained in:
parent
ef20139ce1
commit
90fcddb588
1 changed files with 1 additions and 0 deletions
|
@ -147,6 +147,7 @@ func Insert(key string, value string, tableName string) error {
|
|||
if key != "" && value != "" && IsJSONString(value) {
|
||||
return getCurrentDB()[INSERT].(func(string, string, string) error)(key, value, tableName)
|
||||
} else {
|
||||
logger.Log(0, "invalid json detected!!")
|
||||
return errors.New("invalid insert " + key + " : " + value)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue