some log cleanup
This commit is contained in:
+1
-2
@@ -114,6 +114,7 @@ func (m *AutoEQManager) FetchIndex(ctx context.Context) ([]AutoEQProfileMetadata
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
log.Printf("Successfully fetched %d AutoEQ profiles", len(profiles))
|
||||||
|
|
||||||
// Cache in memory and disk
|
// Cache in memory and disk
|
||||||
m.indexCacheMutex.Lock()
|
m.indexCacheMutex.Lock()
|
||||||
@@ -359,7 +360,6 @@ func (m *AutoEQManager) fetchProfileFromNetwork(ctx context.Context, path string
|
|||||||
// The file is named "{HeadphoneName} FixedBandEQ.txt"
|
// The file is named "{HeadphoneName} FixedBandEQ.txt"
|
||||||
encodedFileName := url.PathEscape(headphoneName + " FixedBandEQ.txt")
|
encodedFileName := url.PathEscape(headphoneName + " FixedBandEQ.txt")
|
||||||
profileURL := autoEQBaseURL + encodedPath + "/" + encodedFileName
|
profileURL := autoEQBaseURL + encodedPath + "/" + encodedFileName
|
||||||
log.Printf("Fetching profile from: %s", profileURL)
|
|
||||||
|
|
||||||
ctx, cancel := context.WithTimeout(ctx, m.timeout)
|
ctx, cancel := context.WithTimeout(ctx, m.timeout)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
@@ -375,7 +375,6 @@ func (m *AutoEQManager) fetchProfileFromNetwork(ctx context.Context, path string
|
|||||||
}
|
}
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
|
|
||||||
log.Printf("Profile fetch response: %d", resp.StatusCode)
|
|
||||||
if resp.StatusCode == http.StatusNotFound {
|
if resp.StatusCode == http.StatusNotFound {
|
||||||
return nil, ErrProfileNotFound
|
return nil, ErrProfileNotFound
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,8 +50,6 @@ func (ab *AutoEQBrowser) fetchAllProfiles() error {
|
|||||||
return fmt.Errorf("failed to fetch AutoEQ index: %w", err)
|
return fmt.Errorf("failed to fetch AutoEQ index: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Printf("Successfully fetched %d AutoEQ profiles", len(profiles))
|
|
||||||
|
|
||||||
// Convert to SearchResult format for display
|
// Convert to SearchResult format for display
|
||||||
ab.allProfileResults = sharedutil.MapSlice(profiles, ab.profileToSearchResult)
|
ab.allProfileResults = sharedutil.MapSlice(profiles, ab.profileToSearchResult)
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user