Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[twitter]--write-log filepath #5249

Open
maplestory03 opened this issue Feb 27, 2024 · 2 comments
Open

[twitter]--write-log filepath #5249

maplestory03 opened this issue Feb 27, 2024 · 2 comments

Comments

@maplestory03
Copy link

maplestory03 commented Feb 27, 2024

1、If the folder does not exist, an error will be reported,log file no out put
[gallery-dl][warning] logfile: [Errno 2] No such file or directory: 'xxxxx'
Still able to execute, but unable to write logs
2、If it is a log with the same file name, running it again will automatically clean it up. I hope to set the cumulative log instead of clearing the last time log, or use another parameter to distinguish between clearing the last time log and the cumulative log

@mikf
Copy link
Owner

mikf commented Feb 27, 2024

  1. At the moment, that's "intended" behavior. Most config errors only produce a warning and proceed anyway. Ctrl+C and mkdir it.
  2. Set mode of output.logfile to "a" and use this option instead of --write-log
{
    "output": {
        "logfile": {
            "path": "xxxxx",
            "mode": "a"
        }
    }
}

@maplestory03
Copy link
Author

  1. At the moment, that's "intended" behavior. Most config errors only produce a warning and proceed anyway. Ctrl+C and mkdir it.
  2. Set mode of output.logfile to "a" and use this option instead of --write-log
{
    "output": {
        "logfile": {
            "path": "xxxxx",
            "mode": "a"
        }
    }
}

After trying this, no log file was generated in both Twitter and Global. At the same time, this log file will change according to the input content, such as saving Twitter to a log file with the Twitter ID file name
Globalall
Twittertwitter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants