diff options
author | Dipesh Amin <yaypunkrock@gmail.com> | 2011-08-21 19:49:05 +0100 |
---|---|---|
committer | Dipesh Amin <yaypunkrock@gmail.com> | 2011-08-21 19:49:53 +0100 |
commit | fba20e9689b6a0407b193fb3c708be45ca68ac71 (patch) | |
tree | eed97d594399ec32dc96a794ccd8c619e42894b8 | |
parent | e15f61bfc5456b58ac099bff61646df012f468a0 (diff) | |
download | manamarket-fba20e9689b6a0407b193fb3c708be45ca68ac71.tar.gz manamarket-fba20e9689b6a0407b193fb3c708be45ca68ac71.tar.bz2 manamarket-fba20e9689b6a0407b193fb3c708be45ca68ac71.tar.xz manamarket-fba20e9689b6a0407b193fb3c708be45ca68ac71.zip |
Change the directory logs are stored in.
-rw-r--r-- | main.py | 2 | ||||
-rw-r--r-- | utils.py | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -490,7 +490,7 @@ def process_whisper(nick, msg, mapserv): trader_state.reset() def main(): - logging.basicConfig(filename='logs/activity.log', level=logging.INFO, format='%(asctime)s: %(message)s', datefmt='%Y-%m-%d %H:%M:%S') + logging.basicConfig(filename='data/logs/activity.log', level=logging.INFO, format='%(asctime)s: %(message)s', datefmt='%Y-%m-%d %H:%M:%S') logging.info("Bot Started.") account = sys.argv[1] @@ -65,7 +65,7 @@ class ItemDB: class ItemLog: """ Writes all sales to a log file, for later processing.""" def __init__(self): - self.log_file = 'logs/sale.log' + self.log_file = 'data/logs/sale.log' def add_item(self, item_id, amount, price): file_node = open(self.log_file, 'a') |