File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333app = Flask (__name__ )
3434
3535
36- def __init__ ():
37- log_format_config = {
38- "format" : "[%(asctime)s] %(message)s" ,
39- "datefmt" : "%Y-%m-%d %H:%M:%S" ,
40- "level" : logging .DEBUG ,
41- "stream" : sys .stdout ,
42- }
43- logging .basicConfig (** log_format_config )
44- logging .getLogger ("requests.packages.urllib3.connectionpool" ).setLevel (
45- logging .WARNING
46- )
47-
48-
4936def slack_main ():
5037 slack_app = slack_bolt .App (
5138 token = conf .SLACK_API_TOKEN , signing_secret = conf .SLACK_SIGNING_SECRET
@@ -190,6 +177,16 @@ async def on_message(message):
190177def main ():
191178 """メイン関数"""
192179
180+ log_format_config = {
181+ "format" : "[%(asctime)s] %(message)s" ,
182+ "datefmt" : "%Y-%m-%d %H:%M:%S" ,
183+ "level" : logging .DEBUG ,
184+ "stream" : sys .stdout ,
185+ }
186+ logging .basicConfig (** log_format_config )
187+ logging .getLogger ("requests.packages.urllib3.connectionpool" ).setLevel (
188+ logging .WARNING
189+ )
193190 logger = logging .getLogger (__name__ )
194191 if conf .MODE == "discord" :
195192 discordClient .run (token = conf .DISCORD_API_TOKEN )
You can’t perform that action at this time.
0 commit comments