Sfoglia il codice sorgente

优化打印日志

niujiuru 1 mese fa
parent
commit
dfe4f9eba6
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      mqtt_reporter/photo.go

+ 1 - 1
mqtt_reporter/photo.go

@@ -109,7 +109,7 @@ func (r *MQTTReporter) uploadPhotoToImagServers(imgFile string, isBackfill /* 
 	} else if !strings.HasPrefix(filepath.Base(imgFile), "history-") { /////// 需要补录, 按协议规定, 重命名文件
 		newName := filepath.Join(baseapp.IMG_DIR, "history-"+filepath.Base(imgFile))
 		if err := os.Rename(imgFile, newName); err != nil {
-			baseapp.Logger.Errorf("[%s] 照片文件重命名失败, 无法标记补录: %s -> %s, 错误: %v!!",
+			baseapp.Logger.Errorf("[%s] 本地照片文件重命名失败, 无法标记补录: %s -> %s, 错误: %v!!",
 				MODULE_NAME, imgFile, newName, err)
 		}
 	}