Skip to content
Snippets Groups Projects
Commit 9560075f authored by Edward Hicks's avatar Edward Hicks :8ball:
Browse files

added debug conditional

parent 8422202b
No related branches found
No related tags found
No related merge requests found
Pipeline #92180 passed
......@@ -11,6 +11,8 @@ import boto3
from botocore.exceptions import ProfileNotFound, NoCredentialsError
from botocore.config import Config
DEBUG = False
class bcolors:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
......@@ -52,6 +54,8 @@ def cleanup():
def printLog(msg, level=loglevels.ERROR):
global logFile
global DEBUG
if not logFile:
if args.logFileName:
try:
......@@ -67,6 +71,8 @@ def printLog(msg, level=loglevels.ERROR):
if level == loglevels.DEBUG:
levelname = "DEBUG"
if not DEBUG:
return
elif level == loglevels.INFO:
levelname = "INFO"
elif level == loglevels.WARN:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment