feat: Introduce unified logging system and optimize file management
- Added a new unified logging module to standardize log formatting, including support for traceId and MDC for better tracking. - Updated `.gitignore` to exclude code analysis reports and temporary files. - Created cleanup scripts to manage unused files and generate cleanup reports. - Enhanced existing modules to integrate the new logging system and improve debugging capabilities. - Removed outdated files and scripts to streamline the project structure.
This commit is contained in:
1 parent
08a0b41834
commit
e5a510d19b
45 files changed
+18285
-1357
No files matched your search
+10
@@ -134,6 +134,12 @@ def parse_args(argv: list[str]) -> argparse.Namespace:
|
||||
default=None,
|
||||
help="倒计时大于该秒数则不参与,高价值福袋可预约(needswitch 生效)",
|
||||
)
|
||||
p.add_argument(
|
||||
"--skip-if-countdown-lt-seconds",
|
||||
type=int,
|
||||
default=None,
|
||||
help="倒计时小于该秒数则不参与,高价值福袋可预约(needswitch 生效)",
|
||||
)
|
||||
p.add_argument(
|
||||
"--reset-after-swipes",
|
||||
type=int,
|
||||
@@ -351,6 +357,10 @@ def main(argv: list[str]) -> int:
|
||||
analyser.skip_if_countdown_gt_seconds = int(
|
||||
args.skip_if_countdown_gt_seconds or 900
|
||||
)
|
||||
if hasattr(args, 'skip_if_countdown_lt_seconds') and args.skip_if_countdown_lt_seconds is not None:
|
||||
setattr(analyser, "skip_if_countdown_lt_seconds", int(
|
||||
args.skip_if_countdown_lt_seconds or 15
|
||||
))
|
||||
if args.reset_after_swipes is not None:
|
||||
analyser.reset_after_swipes = max(1, int(args.reset_after_swipes or 0))
|
||||
analyser.reset_after_swipes_enabled = True
|
||||
|
||||
Reference in new issue
Block a user