Skip to content

Commit dd66f26

Browse files
committed
gh action now includes .log files
1 parent f55f3e9 commit dd66f26

File tree

4 files changed

+6
-123
lines changed

4 files changed

+6
-123
lines changed

.github/workflows/generate-files.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ jobs:
4242
id: prepare_live_files
4343
run: |
4444
mkdir -p live_data_release
45-
echo "Copying live data files..."
46-
find outputs inputs -type f -name "*.csv" ! -path "*/snapshots/*" -exec cp {} live_data_release/ \; -exec echo "Copied: {}" \;
45+
echo "Copying live data files (.csv and .log)..."
46+
find outputs inputs -type f \( -name "*.csv" -o -name "*.log" \) \
47+
! -path "*/snapshots/*" -size +0c \
48+
-exec cp {} live_data_release/ \; -exec echo "Copied: {}" \;
4749
4850
echo "live_data_dir=live_data_release" >> $GITHUB_ENV
4951

debug.log

Lines changed: 0 additions & 119 deletions
This file was deleted.

errors.log

Whitespace-only changes.

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,12 @@ def setup_logging():
106106
h_console.setFormatter(f_simple)
107107

108108
# debug file gets EVERYTHING with the verbose format
109-
h_debug = logging.FileHandler("debug.log")
109+
h_debug = logging.FileHandler(Path("outputs") / "debug.log", encoding="utf-8", delay=True)
110110
h_debug.setLevel(logging.DEBUG)
111111
h_debug.setFormatter(f_verbose)
112112

113113
# errors file gets ERROR and above with verbose format
114-
h_errors = logging.FileHandler("errors.log")
114+
h_errors = logging.FileHandler(Path("outputs") / "errors.log", encoding="utf-8", delay=True)
115115
h_errors.setLevel(logging.ERROR)
116116
h_errors.setFormatter(f_verbose)
117117

0 commit comments

Comments
 (0)