Skip to content

Commit

Permalink
Fix multiple Called logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Apr 18, 2019
1 parent 820c7d1 commit c488776
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/exploits.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class exploit(
for x in xx:
sss.append(x)

logging = log_()
logging = log_(__name__)
class exploit_main(object):

def url(self,t):
Expand Down
2 changes: 1 addition & 1 deletion lib/infoga.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from .tmp.modules import log_,information_gathering_modules,show,description
import whois

logging = log_()
logging = log_(__name__)
class infoga(
_.cms_detector,
_.header_information,
Expand Down
2 changes: 1 addition & 1 deletion lib/scanners.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class scan(
_.path_scanner):
pass

logging = log_()
logging = log_(__name__)
class scanner_main(object):

def url(self,x):
Expand Down
4 changes: 2 additions & 2 deletions lib/tmp/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# -==='  '===-
# '''

def log_():
def log_(kk):
format_ = ColoredFormatter(
'%(log_color)s%(levelname)s%(reset)s %(message)s',
log_colors={
Expand All @@ -38,7 +38,7 @@ def log_():
logging.addLevelName(30,'[-]')
logging.addLevelName(40,'[x]')
logging.addLevelName(50,'[*]')
logger = logging.getLogger('example')
logger = logging.getLogger(kk)
handler = logging.StreamHandler()
handler.setFormatter(format_)
logger.setLevel(logging.DEBUG)
Expand Down

0 comments on commit c488776

Please sign in to comment.