2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 05:25:42 +00:00

Remove some debug statements

This commit is contained in:
Oliver Walters
2020-06-11 11:14:02 +10:00
parent 0068cd9825
commit 1a15b46d65
2 changed files with 10 additions and 7 deletions
InvenTree
InvenTree
barcode

@ -108,19 +108,23 @@ class BarcodePlugin:
return False
def load_barcode_plugins():
def load_barcode_plugins(debug=False):
"""
Function to load all barcode plugins
"""
print("Loading barcode plugins")
if debug:
print("Loading barcode plugins")
plugins = InvenTreePlugins.get_plugins(BarcodePlugins, BarcodePlugin)
if len(plugins) > 0:
print("Discovered {n} plugins:".format(n=len(plugins)))
if debug:
if len(plugins) > 0:
print("Discovered {n} plugins:".format(n=len(plugins)))
for p in plugins:
print(" - {p}".format(p=p.PLUGIN_NAME))
for p in plugins:
print(" - {p}".format(p=p.PLUGIN_NAME))
else:
print("No barcode plugins found")
return plugins