mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-30 04:53:47 +02:00
Use log.debug for some messages in images.py
This commit is contained in:
parent
af7fbe6bb4
commit
19cabdfde6
@ -54,7 +54,7 @@ def list_images(emulator_type):
|
|||||||
for root, _, filenames in _os_walk(directory, recurse=recurse):
|
for root, _, filenames in _os_walk(directory, recurse=recurse):
|
||||||
for filename in filenames:
|
for filename in filenames:
|
||||||
if filename in files:
|
if filename in files:
|
||||||
log.warning("File {} has already been found, skipping...".format(filename))
|
log.debug("File {} has already been found, skipping...".format(filename))
|
||||||
continue
|
continue
|
||||||
if filename.endswith(".md5sum") or filename.startswith("."):
|
if filename.endswith(".md5sum") or filename.startswith("."):
|
||||||
continue
|
continue
|
||||||
@ -63,7 +63,7 @@ def list_images(emulator_type):
|
|||||||
|
|
||||||
filesize = os.stat(os.path.join(root, filename)).st_size
|
filesize = os.stat(os.path.join(root, filename)).st_size
|
||||||
if filesize < 7:
|
if filesize < 7:
|
||||||
log.warning("File {} is too small to be an image, skipping...".format(filename))
|
log.debug("File {} is too small to be an image, skipping...".format(filename))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user