From 7ca2be49a1c7baa3198870e842811b3d241d29c3 Mon Sep 17 00:00:00 2001 From: pengtao Date: Mon, 14 Oct 2019 15:16:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E4=B8=AD=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=A1=8C=E5=8F=B7=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 12 +++++------- ops/mylog.py | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index c85c63a..6ea42cd 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,4 @@ - - #### mp 合作方特征码接口 从NP系统获取外部特征码,匹配中文用于数数展示 externalkey2gamelog @@ -8,10 +6,10 @@ externalkey2gamelog - - -#### gamelog appkey 写入接口 +### gamelog appkey 写入接口 从接口获取appkey写入gamelog配置文件 -内网调用: -http://10.10.3.16:6500/webapp/index.php?c=Ops&a=sync_log_conf \ No newline at end of file +######内网调用: +http://10.10.3.16:6500/webapp/index.php?c=Ops&a=sync_log_conf +######成功返回: +{"errcode": 0, "errmsg": ""} \ No newline at end of file diff --git a/ops/mylog.py b/ops/mylog.py index e441a78..1749f01 100644 --- a/ops/mylog.py +++ b/ops/mylog.py @@ -10,7 +10,7 @@ def define_logger(filename="/data/logs/aa.log", debug=True): logger.setLevel(logging.ERROR) # 设置输出格式 - formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') + formatter = logging.Formatter('%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(message)s') # 设置日志文件处理器 fh = logging.FileHandler(filename)