Permalink
Browse files

add some loggers

  • Loading branch information...
1 parent 0a2fd4c commit 64cf7f8c4f87206dae1c379a3f6cc7b3d73774d8 @almet almet committed Aug 16, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 loadtest.py
View
@@ -24,6 +24,7 @@ def __init__(self, *args, **kwargs):
# consider that 50% of the traffic is english.
languages.extend(('en-US',) * int(0.5 * (len(languages) + 1)))
self.lang = random.choice(languages)
+ self.logger.info('Language: "%s"' % self.lang)
# select 4 categories and 4 applicatoins out of all of them.
categories = ('entertainment-sports', u'business', u'games',
@@ -33,8 +34,11 @@ def __init__(self, *args, **kwargs):
self.categories = random.sample(categories, 4)
+ self.logger.info('categories: "%s"' % ', '.join(self.categories))
+
apps = self.get_apps()
self.apps = random.sample(apps, 4)
+ self.logger.info('apps: "%s"' % ', '.join(self.apps))
def get(self, url, *args, **kwargs):
"""Do a GET request with the given URL.

0 comments on commit 64cf7f8

Please sign in to comment.