Check for new train schedules on the Ferrocarril Central Andino line from Lima to Huancayo
Find a file
Edward Betts 7f7cbfe65e feat: add logging to control output based on TTY context
- Replaced print() with logging.info() and logging.error()
- Added logging configuration to output INFO messages only in TTY
- Ensured ERROR messages are always logged to stdout, including cron runs
- Used sys.stdout.isatty() to detect terminal context
- Maintained existing functionality with updated config and SMTP setup
2025-02-21 17:00:44 -05:00
sample Initial commit. 2025-02-21 16:52:09 -05:00
.gitignore Add .gitignore file. 2025-02-21 16:58:32 -05:00
check.py feat: add logging to control output based on TTY context 2025-02-21 17:00:44 -05:00