Commit 7bccc16d authored by Yuanle Song's avatar Yuanle Song
Browse files

v0.6.0 add dedicated log file for yygame.debug module.

add a make uwsgi task to run uwsgi in dev env.
parent ce0df10c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
(defproject python/lein-template "0.5.9"
(defproject python/lein-template "0.6.0"
  :description "lein template for a python project"
  :repositories [["snapshots"
                  {:url "http://devserv.game.yy.com/nexus/content/repositories/snapshots"
+2 −0
Original line number Diff line number Diff line
@@ -10,6 +10,8 @@ build:

run:
	$(PYTHON) {{name}}/main.py
uwsgi:
	bin/uwsgi --processes=2 --threads=4 --wsgi-file={{name}}/main.py --env=PYTHONPATH=. --http=localhost:8082 --disable-logging
shell:
	$(PYTHON) -i
bootstrap:
+14 −2
Original line number Diff line number Diff line
[loggers]
keys=root,pika,neutronclient
keys=root,pika,neutronclient,yygame_debug

[logger_neutronclient]
level=WARNING
@@ -10,6 +10,12 @@ qualname=neutronclient
level=DEBUG
handlers=console,file,sentry

[logger_yygame_debug]
level=DEBUG
handlers=console,file_yygame_debug,sentry
propagate=0
qualname=yygame.debug

[logger_pika]
handlers=console,file
level=CRITICAL
@@ -17,7 +23,7 @@ propagate=0
qualname=pika

[handlers]
keys=console,file,file_crit,sentry
keys=console,file,file_yygame_debug,file_crit,sentry

[handler_sentry]
level=ERROR
@@ -39,6 +45,12 @@ formatter=long
class=FileHandler
args=('/data2/log/{{name}}/{{name}}.log', 'a', 'utf-8', True)

[handler_file_yygame_debug]
level=DEBUG
formatter=long
class=FileHandler
args=('/data2/log/{{name}}/yygame-debug.log', 'a', 'utf-8', True)

[handler_file_crit]
level=CRITICAL
formatter=long