summaryrefslogtreecommitdiff
path: root/importDomain.go
diff options
context:
space:
mode:
Diffstat (limited to 'importDomain.go')
-rw-r--r--importDomain.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/importDomain.go b/importDomain.go
index 3e07eb5..98f506b 100644
--- a/importDomain.go
+++ b/importDomain.go
@@ -88,14 +88,17 @@ func importDomain(w http.ResponseWriter, r *http.Request) (string, error) {
log.Info(reason)
return "", err
}
- log.Warn("bad XML:", s)
- os.Exit(0)
+ if s != "" {
+ log.Warn("bad XML:", s)
+ os.Exit(0)
+ }
// everything worked. add the events
for _, e := range events {
me.cluster.AddEvent(e)
}
+ log.Warn("Everything worked")
result := fmt.Sprintln("importDomain() worked")
log.Log(WARN, result)
fmt.Fprintln(w, result)