@@ -63,15 +63,14 @@ def request_with_retry(self,
6363 pass
6464
6565 if domain_index != 0 or retry_count != 0 :
66- jm_debug (
67- f'request_retry' ,
68- ', ' .join ([
69- f'次数: [{ retry_count } /{ self .retry_times } ]' ,
70- f'域名: [{ domain_index } of { self .domain_list } ]' ,
71- f'路径: [{ url } ]' ,
72- f'参数: [{ kwargs if "login" not in url else "#login_form#" } ]'
73- ])
74- )
66+ jm_debug (f'req.retry' ,
67+ ', ' .join ([
68+ f'次数: [{ retry_count } /{ self .retry_times } ]' ,
69+ f'域名: [{ domain_index } of { self .domain_list } ]' ,
70+ f'路径: [{ url } ]' ,
71+ f'参数: [{ kwargs if "login" not in url else "#login_form#" } ]'
72+ ])
73+ )
7574
7675 try :
7776 return request (url , ** kwargs )
@@ -85,7 +84,7 @@ def request_with_retry(self,
8584
8685 # noinspection PyMethodMayBeStatic, PyUnusedLocal
8786 def before_retry (self , e , kwargs , retry_count , url ):
88- jm_debug ('retry ' , str (e ))
87+ jm_debug ('req.err ' , str (e ))
8988
9089 def enable_cache (self , debug = False ):
9190 def wrap_func_cache (func_name , cache_dict_name ):
@@ -134,7 +133,7 @@ def get_jmcomic_domain_all(self, postman=None):
134133 # noinspection PyUnusedLocal
135134 def fallback (self , request , url , domain_index , retry_count , ** kwargs ):
136135 msg = f"请求重试全部失败: [{ url } ], { self .domain_list } "
137- jm_debug ('fallback' , " msg" )
136+ jm_debug ('fallback' , msg )
138137 raise AssertionError (msg )
139138
140139
@@ -286,7 +285,7 @@ def album_comment(self,
286285 data ['is_reply' ] = 1
287286 data ['forum_subject' ] = 1
288287
289- jm_debug ('album_comment ' ,
288+ jm_debug ('album.comment ' ,
290289 f'{ video_id } : [{ comment } ]' +
291290 (f' to ({ comment_id } )' if comment_id is not None else '' )
292291 )
@@ -297,7 +296,7 @@ def album_comment(self,
297296 )
298297
299298 ret = JmAcResp (resp )
300- jm_debug ('album_comment ' , f'{ video_id } : [{ comment } ] ← ({ ret .model ().cid } )' )
299+ jm_debug ('album.comment ' , f'{ video_id } : [{ comment } ] ← ({ ret .model ().cid } )' )
301300
302301 return ret
303302
0 commit comments