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

βœ¨πŸ”‡ an option to disable saving log files #1119

Merged
merged 1 commit into from
May 26, 2022

Conversation

idinium96
Copy link
Member

@idinium96 idinium96 commented May 26, 2022

New environmental key: ENABLE_SAVE_LOG_FILE (default is true);

  • Disable saving log files when set to false.

Note:
Anything that's deemed to be private will not get filtered in the pm2.log file (if you're running the bot with PM2).
If you've never set your backpack.tf API key and access token, be sure to remove that private stuff before sharing the log file with others - and please, just fill in everything before running the bot.

See:
https://github.com/TF2Autobot/tf2autobot/wiki/Configuring-the-bot#backpacktf-user-token-and-api-key
(click on the "see this image" link)

onBptfAuth(auth: { apiKey: string; accessToken: string }): void {
const details = Object.assign({ private: true }, auth);
log.warn('Please add your backpack.tf API key and access token to your environment variables!', details);
}

@idinium96 idinium96 merged commit 35dbdad into development May 26, 2022
@idinium96 idinium96 mentioned this pull request May 26, 2022
@idinium96 idinium96 deleted the options-disable-log-files branch May 30, 2022 16:32
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

Successfully merging this pull request may close these issues.

1 participant