Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(365)

Unified Diff: sky/tools/sky_server

Issue 692593004: Don't show sky_server logs to the skydb console (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tools/sky_server
diff --git a/sky/tools/sky_server b/sky/tools/sky_server
index 1d875e15134b9532ae60e4e65e5905abc6a71d39..5308b2de9ee4d81e26ee5f1c7a0b8f26da024342 100755
--- a/sky/tools/sky_server
+++ b/sky/tools/sky_server
@@ -22,13 +22,23 @@ GEN_ROOT = os.path.join(SRC_ROOT, BUILD_DIRECTORY, CONFIG_DIRECTORY, 'gen')
def main():
parser = argparse.ArgumentParser(description='Sky development server')
+ parser.add_argument('-v', '--verbose', action='store_true',
+ help='Enable logging to the console.')
parser.add_argument('app_path', type=str)
parser.add_argument('port', type=int)
args = parser.parse_args()
+ log_dir = os.path.abspath(os.getcwd())
+ print "%s logging to access_log.txt in %s" % (
+ parser.prog, log_dir)
+
config = {
'global': {
'server.socket_port': args.port,
+ 'log.screen': args.verbose,
+ 'log.access_log': os.path.join(log_dir, 'access_log.txt'),
+ # This causes some strange python exception??
+ # 'log.error_log': os.path.join(log_dir, 'error_log.txt'),
},
'/': {
'tools.staticdir.on': True,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698