Skip to content

Commit

Permalink
log formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
seb26 committed Mar 20, 2019
1 parent f53777a commit 5f7e41c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mhl-compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

LOG_VERSION = '0.1'
LOG_STARTUP_LINE = 'mhl-compare (v{}) (Python)'.format( LOG_VERSION )
LOG_COPYRIGHT_LINE = '(C) 2019; Author: Sebastian Reategui; License: MIT'
LOG_COPYRIGHT_LINE = '(C) 2019 Sebastian Reategui -- MIT License'

LOG_COLOR_MHL_A = 'green'
LOG_COLOR_MHL_B = 'yellow'
Expand Down Expand Up @@ -275,8 +275,8 @@ def checkCommon(self):
self.COUNT['MINOR'] += 1
beenCounted = True
logDetail( ' ' + colored( hashA.filename, 'green' ) )
logDetail( ' Filename: different (1st):', colored( hashA.filename, LOG_COLOR_MHL_A ) )
logDetail( ' (2nd):', colored( hashB.filename, LOG_COLOR_MHL_B ) )
logDetail( ' Filename: different (1st):', colored( hashA.filename, LOG_COLOR_MHL_A ) )
logDetail( ' (2nd):', colored( hashB.filename, LOG_COLOR_MHL_B ) )
else:
logDetail( ' ' + hashA.filename )
if 'directory' in dChanged:
Expand Down Expand Up @@ -443,8 +443,8 @@ def checkDelta(self, listA=False, listB=False):
if not beenCounted:
self.COUNT['MINOR'] += 1
beenCounted = True
logDetail( ' Filename: different (1st):', colored( hash.filename, LOG_COLOR_MHL_A ) )
logDetail( ' (2nd):', colored( hashPossible.filename, LOG_COLOR_MHL_B ) )
logDetail( ' Filename: different (1st):', colored( hash.filename, LOG_COLOR_MHL_A ) )
logDetail( ' (2nd):', colored( hashPossible.filename, LOG_COLOR_MHL_B ) )
else:
# If the filename is the same, it has already been declared closer to the top.
pass
Expand Down
10 changes: 10 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
altgraph==0.16.1
future==0.17.1
humanize==0.5.1
macholib==1.11
pefile==2018.8.8
PyInstaller==3.4
python-dateutil==2.8.0
six==1.12.0
termcolor==1.1.0
xmltodict==0.12.0

0 comments on commit 5f7e41c

Please sign in to comment.