Drone: Change type of log messages in animation lib

This commit is contained in:
Arthur Golubtsov
2020-01-20 14:55:08 +00:00
parent d654dba7fa
commit 4431fb7e20

View File

@@ -36,7 +36,7 @@ def get_id(filepath="animation.csv"):
try:
animation_file = open(filepath)
except IOError:
logger.error("File {} can't be opened".format(filepath))
logger.debug("File {} can't be opened".format(filepath))
anim_id = "No animation"
return anim_id
else:
@@ -57,7 +57,7 @@ def get_start_xy(filepath="animation.csv", x_ratio=1, y_ratio=1, z_ratio=1):
try:
animation_file = open(filepath)
except IOError:
logger.error("File {} can't be opened".format(filepath))
logger.debug("File {} can't be opened".format(filepath))
anim_id = "No animation"
return float('nan'), float('nan')
else:
@@ -89,7 +89,7 @@ def load_animation(filepath="animation.csv", x0=0, y0=0, z0=0, x_ratio=1, y_rati
try:
animation_file = open(filepath)
except IOError:
logging.error("File {} can't be opened".format(filepath))
logger.debug("File {} can't be opened".format(filepath))
anim_id = "No animation"
else:
with animation_file: