summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDipesh Amin <yaypunkrock@gmail.com>2011-08-21 19:49:05 +0100
committerDipesh Amin <yaypunkrock@gmail.com>2011-08-21 19:49:53 +0100
commitfba20e9689b6a0407b193fb3c708be45ca68ac71 (patch)
treeeed97d594399ec32dc96a794ccd8c619e42894b8
parente15f61bfc5456b58ac099bff61646df012f468a0 (diff)
downloadmanamarket-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.py2
-rw-r--r--utils.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/main.py b/main.py
index ddf4c24..d3824ff 100644
--- a/main.py
+++ b/main.py
@@ -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]
diff --git a/utils.py b/utils.py
index 3215457..8e7f839 100644
--- a/utils.py
+++ b/utils.py
@@ -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')