-
Notifications
You must be signed in to change notification settings - Fork 2
Line Output for Logging Change over
$ grep -r "log" .git/config: logallrefupdates = true .git/hooks/applypatch-msg.sample:# An example hook script to check the commit log message taken by .git/hooks/commit-msg.sample:# An example hook script to check the commit log message. .git/hooks/prepare-commit-msg.sample:# An example hook script to prepare the commit log message. .gitignore:*.log adba/aniDBAbstracter.py: self.log = self.aniDB.log adba/aniDBAbstracter.py: self.log = self._fake_log() adba/aniDBAbstracter.py: def _fake_log(self, x=None): adba/aniDBAbstracter.py: self.log("exception msg: " + str(e)) adba/aniDBAbstracter.py: self.log("Added the episode to anidb") adba/aniDBAbstracter.py: self.log("exception msg: " + str(e)) adba/aniDBAbstracter.py: self.log("attempted an edit before add") adba/aniDBAbstracter.py: self.log("Edited the episode in anidb") adba/aniDBAbstracter.py: self.log("exception msg: " + str(e)) adba/aniDBAbstracter.py: self.log("Deleted the episode from anidb") adba/aniDBAbstracter.py: self.log("Calculating the ed2k. Please wait...") adba/aniDBfileInfo.py:# http://www.radicand.org/blog/orz/2010/2/21/edonkey2000-hash-in-python/ adba/aniDBlink.py: def init(self, server, port, myport, logFunction, delay=2, timeout=20, logPrivate=False): adba/aniDBlink.py: self.log = logFunction adba/aniDBlink.py: self.logPrivate = logPrivate adba/aniDBlink.py: self.log("Releasing socket and stopping link thread") adba/aniDBlink.py: def print_log(self, data): adba/aniDBlink.py: def print_log_dummy(self, data): adba/aniDBlink.py: self.log("NetIO < %s" % repr(data)) adba/aniDBlink.py: self.log("UnZip | %s" % repr(tmp)) adba/aniDBlink.py: self.log("sorry encryption is not supported") adba/aniDBlink.py: self.log(("AniDB API informs that user or client is banned:", resp.resstr)) adba/aniDBlink.py: self.log("Avoiding flood by paranoidly panicing: Aborting link thread, killing connection, releasing waiters and quiting") adba/aniDBlink.py: self.log("NetIO | BANNED") adba/aniDBlink.py: if command.command == 'AUTH' and self.logPrivate: adba/aniDBlink.py: self.log("NetIO > sensitive data is not logged!") adba/aniDBlink.py: self.log("NetIO > %s" % repr(data)) adba/init.py: def init(self, clientname='adba', server='api.anidb.info', port=9000, myport=9876, user=None, password=None, session=None, log=False, logPrivate=False, keepAlive=False,commandDelay=4.1): adba/init.py: # setting the log function adba/init.py: self.logPrivate = logPrivate adba/init.py: if type(log) in (FunctionType, MethodType):# if we get a function or a method use that. adba/init.py: self.log = log adba/init.py: self.logPrivate = True # true means sensitive data will not be NOT be logged ... yeah i know oO adba/init.py: elif log:# if it something else (like True) use the own print_log adba/init.py: self.log = self.print_log adba/init.py: else:# dont log at all adba/init.py: self.log = self.print_log_dummy adba/init.py: self.link = AniDBLink(server, port, myport, self.log, logPrivate=self.logPrivate,delay=commandDelay) adba/init.py: def print_log(self, data): adba/init.py: LogFileHandler=open("fullDebugLog.log",'a',encoding="UTF-8") adba/init.py: def print_log_dummy(self, data): adba/init.py: self.logout(cutConnection=True) adba/init.py: self.log("seams like the last command got a not authed error back tring to reconnect now") adba/init.py: self.log("handling(" + str(self.counter) + "-" + str(self.link.delay) + ") command " + str(command.command)) adba/init.py: self.log("auto re authenticating !") adba/init.py: self.log("auto check !") adba/init.py: self.log("auto uptime !") adba/init.py: self.log("auto ping !") adba/init.py: self.log("ok1") adba/init.py: self.log("ok2") adba/init.py: self.log("You wanted to keep this thing alive!") adba/init.py: self.log("Starting thread now...") adba/init.py: self.log("not starting thread seams like it is already running. this must be a _reAuthenticate") adba/init.py: def logout(self, cutConnection=False, callback=None): Binary file adba/pycache/aniDBAbstracter.cpython-32.pyc matches Binary file adba/pycache/aniDBAbstracter.cpython-34.pyc matches Binary file adba/pycache/aniDBlink.cpython-32.pyc matches Binary file adba/pycache/aniDBlink.cpython-34.pyc matches Binary file adba/pycache/init.cpython-32.pyc matches Binary file adba/pycache/init.cpython-34.pyc matches adbacli.py:import logging adbacli.py:# Check if login is required and create connection if have login credentials adbacli.py: connection = adba.Connection(log=True, commandDelay=2.1) adbacli.py: connection = adba.Connection(log=True) adbacli.py: connection.logout(True) groupstatus_test.py:# log = True great for testing not so great for a running system (default is False) groupstatus_test.py:connection = adba.Connection(log=True) groupstatus_test.py:connection.logout() notification_test.py:connection = adba.Connection(log=logwrapper) test.py:# log = True great for testing not so great for a running system (default is False) test.py:connection = adba.Connection(log=True) test.py:# we are done we have our info in the episode object so lets logout test.py:connection.logout(True) test.py:# ps calling connection.logout(True) would achieve the same test_lib.py:def log_function(data,logLvl="INFO"): test_lib.py: print((getNowString()+"-"+str(logLvl)+": "+str(data))) test_lib.py:logwrapper = lambda x :log_function("anidb: "+str(x),"DEBUG") thread_test.py:connection = adba.Connection(log=logwrapper, keepAlive=True) thread_test.py: log_function("authenticating in thread: " + self.getName()) thread_test.py: log_function(self.name + "no need to authenticate some one else did it") thread_test.py: log_function("the id to " + self.animeName + " is " + str(anime.aid)) thread_test.py: log_function("not looking up anything you gave me no anime name") thread_test.py:print(("final logout: " + str(connection.logout()))) Binary file pycache/test_lib.cpython-32.pyc matches
$ grep -r "print"
.git/hooks/pre-commit.sample:# printable range starts at the space character and ends with tilde.
.git/hooks/pre-commit.sample:# If there are whitespace errors, print the offending file names and fail.
.git/hooks/pre-rebase.sample: print STDERR $msg;
.git/hooks/pre-rebase.sample: print STDERR " $elem->[1]\n";
.git/hooks/prepare-commit-msg.sample: /usr/bin/perl -i.bak -ne 's/^/# /, s/^# #/#/ if /^Conflicts/ .. /#/; print' "$1" ;;
.git/hooks/prepare-commit-msg.sample:# print "\n" . git diff --cached --name-status -r
adba/aniDBfileInfo.py: print("Error occured while writing back to disk")
adba/aniDBlink.py: def print_log(self, data):
adba/aniDBlink.py: print(data)
adba/aniDBlink.py: def print_log_dummy(self, data):
adba/aniDBlink.py: print("sorry encryption is not supported")
adba/aniDBlink.py: print("AniDB API informs that user or client is banned:", resp.resstr)
adba/aniDBlink.py: print("Avoiding flood by paranoidly panicing: Aborting link thread, killing connection, releasing waiters and quiting")
adba/aniDBmaper.py: print("------")
adba/aniDBmaper.py: print("File F: "+ str(self.checkMapFileF(verbos)))
adba/aniDBmaper.py: print("------")
adba/aniDBmaper.py: print("File A: "+ str(self.checkMapFileA(verbos)))
adba/aniDBmaper.py: print(mask)
adba/aniDBmaper.py: print(mask_re)
adba/aniDBmaper.py: print(bits)
adba/aniDBmaper.py: print(bits_re)
adba/aniDBmaper.py: print("bits are:"+ str((bits_re == bits)))
adba/aniDBmaper.py: print("map is :"+ str((sorted(mask_re) == sorted(mask))))
adba/aniDBresponses.py: #print "File - codelistF: "+str(codeListF)
adba/aniDBresponses.py: #print "File - codelistA: "+str(codeListA)
adba/aniDBtvDBmaper.py: #print("searching "+x+" with the value "+str(xValue)+" and want to give back "+y)
adba/anime-list.xml: H2O: Footprints in the Sand
adba/animetitles.xml: <title type="syn" xml:lang="fr">La vierge Marie vous regarde printemps</title>
adba/animetitles.xml: <title type="syn" xml:lang="fr">Au pays de Candy : L`appel du printemps</title>
adba/animetitles.xml: <title type="main" xml:lang="x-jat">Storm Rider - Blueprint</title>
adba/animetitles.xml: <title type="main" xml:lang="x-jat">H2O: Footprints in the Sand</title>
adba/init.py: elif log:# if it something else (like True) use the own print_log
adba/init.py: self.log = self.print_log
adba/init.py: self.log = self.print_log_dummy
adba/init.py: def print_log(self, data):
adba/init.py: # print((strftime("%Y-%m-%d %H:%M:%S", localtime(time())) + ": " + str(data) + "\n"))
adba/init.py: def print_log_dummy(self, data):
Binary file adba/pycache/aniDBfileInfo.cpython-32.pyc matches
Binary file adba/pycache/aniDBfileInfo.cpython-34.pyc matches
Binary file adba/pycache/aniDBlink.cpython-32.pyc matches
Binary file adba/pycache/aniDBlink.cpython-34.pyc matches
Binary file adba/pycache/aniDBmaper.cpython-32.pyc matches
Binary file adba/pycache/aniDBmaper.cpython-34.pyc matches
Binary file adba/pycache/init.cpython-32.pyc matches
Binary file adba/pycache/init.cpython-34.pyc matches
adbacli.py:import pprint
adbacli.py:help='Command to execute. hash: Hash the file and print its ed2k hash. mylistadd: Hash the file and add it to AniDB MyList. If the file was there, it will be updated. mylistdel: Hash the file and delete it from AniDB MyList. getfields: Hash the file and retrieve requested fields for the hashed file. listfields: Lists all the available fields that can be requested from AniDB.')
adbacli.py: print("Fields to retrieve are required for " + args.command + ".")
adbacli.py: print("Files and/or directories containing valid files are required for " + args.command + ".")
adbacli.py: print("User and password required for " + args.command + ".")
adbacli.py: print(("exception msg: " + str(e)))
adbacli.py: print(thisED2K)
adbacli.py: print("ERROR: " + thisFile + " not in AniDB!")
adbacli.py: print(thisFile + " successfully edited in AniDB MyList.")
adbacli.py: print(thisFile + " successfully added to AniDB MyList.")
adbacli.py: print("ERROR: " + thisFile + " could not be added to AniDB MyList.")
adbacli.py: print("ERROR: " + thisFile + " not in AniDB!")
adbacli.py: print(thisFile + " successfully removed from AniDB MyList.")
adbacli.py: print("ERROR: " + thisFile + " could not be removed from AniDB MyList.")
adbacli.py: # Add/edit the file to AniDB and print the retrieved field(s)
adbacli.py: print("ERROR: " + thisFile + " not in AniDB!")
adbacli.py: print(thisFile + " successfully edited in AniDB MyList.")
adbacli.py: print(thisFile + " successfully added to AniDB MyList.")
adbacli.py: print(thisFile + " could not be added to AniDB MyList.")
adbacli.py: print("filename\t" + thisFile)
adbacli.py: print(field + "\t" + str(getattr(episode, field)))
adbacli.py: print("")
adbacli.py: print("ERROR: " + thisFile + " not in AniDB!")
adbacli.py: print("filename\t" + thisFile)
adbacli.py: print(field + "\t" + str(getattr(episode, field)))
adbacli.py: print("")
adbacli.py: print('\n'.join(validFields))
ed2k_cache_test.py:print("Version:",adba.version)
ed2k_cache_test.py:#print(sys.executable)
ed2k_cache_test.py: print(currentFilePath,eD2KHash)
ed2k_cache_test.py: print(key,ED2KCache[key])
ed2k_cache_test.py:print(len(ED2KCache))
groupstatus_test.py:print(adba.version)
groupstatus_test.py: print(("exception msg: " + str(e)))
groupstatus_test.py: print("if we cant even ping stop right here")
groupstatus_test.py: print(("exception msg: " + str(e)))
groupstatus_test.py: print(("########################### " + animeName + " ###########################"))
groupstatus_test.py: print(("- " + str(group)))
maper_test.py:print((maper.getAnimeBitsA(amask)))
test.py:print("Version:",adba.version)
test.py:# print(("anidbid from name: "+str(anime.aid)))
test.py:# print(("name from anidbid: "+str(anime.name)))
test.py:# print(("name from tvdbid or name: "+str(anime.name)))
test.py: print(("exception msg: "+str(e)))
test.py: print("if we cant even ping stop right here")
test.py: print(("exception msg: "+str(e)))
test.py: print(line["shortname"])
test.py: print(("Trying to lookup "+str(filePath)+" on anidb"))
test.py: # print(("exception msg: "+str(e)))
test.py: print(("Lookup successful, the anidb filename is: "+str(episode.anidb_file_name)))
test.py: print("-: "+name)
test_lib.py: print((getNowString()+"-"+str(logLvl)+": "+str(data)))
thread_test.py:print(("version: " + str(adba.version)))
thread_test.py: print((self.name + " started"))
thread_test.py:print("#####################################")
thread_test.py:print("STRESS TEST !!!!1")
thread_test.py:print("#####################################")
thread_test.py:print("#####################################")
thread_test.py:print("Block ONE 8 Threads")
thread_test.py:print("#####################################")
thread_test.py: print("running", threading.activeCount())
thread_test.py:print("#####################################")
thread_test.py:print("Wait 3 min. we should see some auto checks / pings")
thread_test.py:print("#####################################")
thread_test.py:print("#####################################")
thread_test.py:print("Breaking the session")
thread_test.py:print("#####################################")
thread_test.py:print("#####################################")
thread_test.py:print("Block TWO 8 Threads")
thread_test.py:print("#####################################")
thread_test.py: print("running", threading.activeCount())
thread_test.py: print("#####################################")
thread_test.py: print("Just for the hell of it authenticate while some threads run")
thread_test.py: print("#####################################")
thread_test.py:print(("final logout: " + str(connection.logout())))
thread_test.py:print("#####################################")
thread_test.py:print("Thank you! Thread / Stress completed!")
thread_test.py:print("#####################################")
tvdbMaper_test.py:print("--- test with name ---")
tvdbMaper_test.py:print("tvdb_id:",anime.tvdb_id)
tvdbMaper_test.py:print("anidb_id:",anime.aid)
tvdbMaper_test.py:print("--- test with aid ---")
tvdbMaper_test.py:print("tvdb_id:",anime.tvdb_id)
tvdbMaper_test.py:print("name:",anime.name)
tvdbMaper_test.py:print("--- test with tvdbid ---")
tvdbMaper_test.py:print("anidb_id:",anime.aid)
tvdbMaper_test.py:print("name:",anime.name)
Binary file pycache/test_lib.cpython-32.pyc matches