Merge pull request 'add debug log' (#49) from no-text-input-for-wifi-password into dev
Reviewed-on: https://codeberg.org/RhemaWave-Technologies/RhemaWave/pulls/49
This commit is contained in:
@@ -67,7 +67,7 @@ func DownloadAudioFiles(progressChan chan<- DownloadStatus, filenames []string,
|
|||||||
totalDownloaded := int64(0)
|
totalDownloaded := int64(0)
|
||||||
|
|
||||||
for _, filename := range filenames {
|
for _, filename := range filenames {
|
||||||
logger.Info("Downloading %s", filename)
|
logger.Debug("Downloading %s", filename)
|
||||||
destPath := filepath.Join(destDir, filename)
|
destPath := filepath.Join(destDir, filename)
|
||||||
// Check if the file already exists
|
// Check if the file already exists
|
||||||
url := urlBase + filename
|
url := urlBase + filename
|
||||||
@@ -95,7 +95,7 @@ func DownloadAudioFiles(progressChan chan<- DownloadStatus, filenames []string,
|
|||||||
if !os.IsNotExist(err) {
|
if !os.IsNotExist(err) {
|
||||||
logger.Warning("%s corrupt. Adding to download queue.", filename)
|
logger.Warning("%s corrupt. Adding to download queue.", filename)
|
||||||
} else {
|
} else {
|
||||||
logger.Info("%s not found. Adding to download queue.", filename)
|
logger.Debug("%s not found. Adding to download queue.", filename)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Append it to the list to download
|
// Append it to the list to download
|
||||||
|
|||||||
@@ -400,6 +400,7 @@ func (p *AudioOptions) updateCursorPosition() {
|
|||||||
func (p *AudioOptions) ToggleAudio() {
|
func (p *AudioOptions) ToggleAudio() {
|
||||||
config, err := db.GetConfig(p.Context.DbPtr)
|
config, err := db.GetConfig(p.Context.DbPtr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
logger.Error("panic! Cannot query database for configuration")
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
config.AudioEnabled = !config.AudioEnabled
|
config.AudioEnabled = !config.AudioEnabled
|
||||||
|
|||||||
Reference in New Issue
Block a user