fix: standardize log prefixes, remove duplicates, add missing module tags
Second-pass logging cleanup: consistent [LEVEL] [module] format across all 41 files. Remove stale prefixes ([CF], [SYNC], [SCHED], [API], [STORAGE], [HEALTH], [ROLLBACK]). Remove 5 duplicate log lines. Gate ungated DEBUG lines. Fix wrong log levels (restore start WARN→INFO). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -64,10 +64,10 @@ func (c *Client) do(ctx context.Context, method, path string, body interface{})
|
||||
}
|
||||
bodyReader = bytes.NewReader(data)
|
||||
if c.debug {
|
||||
c.logger.Printf("[CF-DEBUG] %s %s body=%s", method, path, string(data))
|
||||
c.logger.Printf("[DEBUG] [cloudflare] %s %s body=%s", method, path, string(data))
|
||||
}
|
||||
} else if c.debug {
|
||||
c.logger.Printf("[CF-DEBUG] %s %s", method, path)
|
||||
c.logger.Printf("[DEBUG] [cloudflare] %s %s", method, path)
|
||||
}
|
||||
|
||||
url := apiBase + path
|
||||
@@ -91,7 +91,7 @@ func (c *Client) do(ctx context.Context, method, path string, body interface{})
|
||||
}
|
||||
|
||||
if c.debug {
|
||||
c.logger.Printf("[CF-DEBUG] Response %d: %s", resp.StatusCode, string(respBody))
|
||||
c.logger.Printf("[DEBUG] [cloudflare] Response %d: %s", resp.StatusCode, string(respBody))
|
||||
}
|
||||
|
||||
var apiResp apiResponse
|
||||
|
||||
Reference in New Issue
Block a user