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-
4836
4937def slack_main ():
5038 slack_app = slack_bolt .App (
@@ -190,6 +178,16 @@ async def on_message(message):
190178def main ():
191179 """メイン関数"""
192180
181+ log_format_config = {
182+ "format" : "[%(asctime)s] %(message)s" ,
183+ "datefmt" : "%Y-%m-%d %H:%M:%S" ,
184+ "level" : logging .DEBUG ,
185+ "stream" : sys .stdout ,
186+ }
187+ logging .basicConfig (** log_format_config )
188+ logging .getLogger ("requests.packages.urllib3.connectionpool" ).setLevel (
189+ logging .WARNING
190+ )
193191 logger = logging .getLogger (__name__ )
194192 if conf .MODE == "discord" :
195193 discordClient .run (token = conf .DISCORD_API_TOKEN )
You can’t perform that action at this time.
0 commit comments