Commit 8c81140b authored by Erick Hitter's avatar Erick Hitter
Browse files

No newlines inside of `Println()`

parent d6dfe7b4
......@@ -180,7 +180,7 @@ func getInstanceInfo() (siteInfo, error) {
jsonRes := make([]siteInfo, 0)
if err = json.Unmarshal([]byte(raw), &jsonRes); err != nil {
if debug {
logger.Println(fmt.Sprintf("%+v\n", err))
logger.Println(fmt.Sprintf("%+v", err))
}
return siteInfo{}, err
......@@ -229,7 +229,7 @@ func getMultisiteSites() ([]site, error) {
jsonRes := make([]site, 0)
if err = json.Unmarshal([]byte(raw), &jsonRes); err != nil {
if debug {
logger.Println(fmt.Sprintf("%+v\n", err))
logger.Println(fmt.Sprintf("%+v", err))
}
return make([]site, 0), err
......@@ -274,7 +274,7 @@ func getSiteEvents(site string) ([]event, error) {
siteEvents := make([]event, 0)
if err = json.Unmarshal([]byte(raw), &siteEvents); err != nil {
if debug {
logger.Println(fmt.Sprintf("%+v\n", err))
logger.Println(fmt.Sprintf("%+v", err))
}
return make([]event, 0), err
......@@ -326,7 +326,7 @@ func runWpCliCmd(subcommand []string) (string, error) {
if err != nil {
if debug {
logger.Printf("%s - %s", err, wpOutStr)
logger.Println(fmt.Sprintf("%+v\n", subcommand))
logger.Println(fmt.Sprintf("%+v", subcommand))
}
return wpOutStr, err
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment