Explorar o código

[hdfs] Improve log message for left-over temporary file during upload op (#3843)

Harsh Gupta hai 1 ano
pai
achega
08ca92ca38
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      desktop/libs/hadoop/src/hadoop/fs/upload.py

+ 1 - 1
desktop/libs/hadoop/src/hadoop/fs/upload.py

@@ -198,7 +198,7 @@ class HDFStemporaryUploadedFile(object):
     if self._do_cleanup:
       # Do not do cleanup here. It's hopeless. The self._fs threadlocal states
       # are going to be all wrong.
-      LOG.error("Left-over upload file is not cleaned up: %s" % (self._path,))
+      LOG.debug(f"Check for left-over upload file for cleanup if the upload op was unsuccessful: {self._path}")
 
   def get_temp_path(self):
     return self._path