Skip to content

Commit

Permalink
print sys version only on debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessandroZ committed Apr 11, 2019
1 parent 1435724 commit 2255eb5
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
9 changes: 4 additions & 5 deletions Linux/laZagne.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,6 @@ def runLaZagne(category_selected='all', subcategories={}):
args = dict(parser.parse_args()._get_kwargs())
arguments = parser.parse_args()

quiet_mode(is_quiet_mode=args['quiet'])

# Print the title
constant.st.first_title()

# Define constant variables
output(
output_dir=args['output'],
Expand All @@ -204,6 +199,10 @@ def runLaZagne(category_selected='all', subcategories={}):
all_format=args['write_all']
)
verbosity(verbose=args['verbose'])
quiet_mode(is_quiet_mode=args['quiet'])

# Print the title
constant.st.first_title()

start_time = time.time()

Expand Down
6 changes: 4 additions & 2 deletions Linux/lazagne/config/write_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ def __init__(self):
| ! BANG BANG ! |
| |
|====================================================================|
Python {}.{}.{} on'''.format(*sys.version_info) + " {0} {4}: {5}\n".format(*uname())
# Python 3.7.3 on Darwin x86_64: i386
'''

def set_color(self, color=None):
b = Bcolors()
Expand All @@ -45,6 +44,9 @@ def set_color(self, color=None):
# Print banner
def first_title(self):
self.do_print(message=self.banner, color='white')
# Python 3.7.3 on Darwin x86_64: i386
python_banner = 'Python {}.{}.{} on'.format(*sys.version_info) + " {0} {4}: {5}\n".format(*uname())
self.print_logging(function=logging.debug, prefix='[!]', message=python_banner, color='white')

# Info option for the logging
def print_title(self, title):
Expand Down
6 changes: 4 additions & 2 deletions Mac/lazagne/config/write_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ def __init__(self):
| ! BANG BANG ! |
| |
|====================================================================|
Python {}.{}.{} on'''.format(*sys.version_info) + " {0} {4}: {5}\n".format(*uname())
# Python 3.7.3 on Darwin x86_64: i386
'''

def set_color(self, color=None):
b = Bcolors()
Expand All @@ -44,6 +43,9 @@ def set_color(self, color=None):
# Print banner
def first_title(self):
self.do_print(message=self.banner, color='white')
# Python 3.7.3 on Darwin x86_64: i386
python_banner = 'Python {}.{}.{} on'.format(*sys.version_info) + " {0} {4}: {5}\n".format(*uname())
self.print_logging(function=logging.debug, prefix='[!]', message=python_banner, color='white')

# Info option for the logging
def print_title(self, title):
Expand Down
3 changes: 1 addition & 2 deletions Windows/laZagne.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,6 @@ def clean_args(arg):
args = dict(parser.parse_args()._get_kwargs())
arguments = parser.parse_args()

quiet_mode(is_quiet_mode=args['quiet'])

# Define constant variables
output(
output_dir=args['output'],
Expand All @@ -222,6 +220,7 @@ def clean_args(arg):
)
verbosity(verbose=args['verbose'])
manage_advanced_options(user_password=args.get('password', None))
quiet_mode(is_quiet_mode=args['quiet'])

# Print the title
constant.st.first_title()
Expand Down
2 changes: 1 addition & 1 deletion Windows/lazagne/config/write_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def set_color(self, color='white', intensity=False):
def first_title(self):
self.do_print(message=self.banner, color='white', intensity=True)
# Python 3.7.3 on Darwin x86_64: i386
python_banner = 'Python {}.{}.{} on'.format(*sys.version_info) + " {0} {4}: {5}".format(*uname())
python_banner = 'Python {}.{}.{} on'.format(*sys.version_info) + " {0} {4}: {5}\n".format(*uname())
self.print_logging(function=logging.debug, message=python_banner, prefix='[!]', color='white', intensity=True)

# info option for the logging
Expand Down

0 comments on commit 2255eb5

Please sign in to comment.