[XAPID-1088] improve log, add missing liscense
diff --git a/data.go b/data.go
index 1d02c56..446c87a 100644
--- a/data.go
+++ b/data.go
@@ -84,6 +84,8 @@
if attName.Valid && entity_id.Valid {
att := Attribute{Name: attName.String, Value: attValue.String}
mapOfAttributes[entity_id.String] = append(mapOfAttributes[entity_id.String], att)
+ } else {
+ log.Debugf("Not valid. AttName: %s Entity_id: %s", attName.String, entity_id.String)
}
}
log.Debug("attributes returned for query ", sql, " are ", mapOfAttributes)
diff --git a/verifyApiKeyStructs.go b/verifyApiKeyStructs.go
index e791c6a..28f345b 100644
--- a/verifyApiKeyStructs.go
+++ b/verifyApiKeyStructs.go
@@ -1,3 +1,16 @@
+// Copyright 2017 Google Inc.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
package apidVerifyApiKey
import "errors"