Commit 5247a90b authored by rdecoupe's avatar rdecoupe
Browse files

change tree of project

parent 247780a4
#### Twitter Credentials ####
credentials.py
params/credentials.py
#### Log ####
log/collectweets.log
#### Virtual Env ####
venv/
#### IDE ####
......
......@@ -40,7 +40,7 @@ def logsetup():
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
formatter = logging.Formatter('%(asctime)s :: %(levelname)s :: %(message)s')
file_handler = RotatingFileHandler('collectweets.log', 'a', 1000000, 1)
file_handler = RotatingFileHandler('log/collectweets.log', 'a', 1000000, 1)
file_handler.setLevel(logging.DEBUG)
file_handler.setFormatter(formatter)
logger.addHandler(file_handler)
......@@ -55,7 +55,7 @@ if __name__ == '__main__':
logger = logsetup()
# try import credentials of MOODTwitter account
try:
import credentials
from params import credentials
except ImportError:
msg = 'it seems there is no file named :"credentials.py"'
exitscript(logger, msg)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment