Skip to content

Commit

Permalink
create logs folder, add to gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
mmd-afegbua committed Feb 23, 2024
1 parent 12ee6f3 commit 5814456
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ datadir/
.idea/
.vscode
snapshots/
logs/
coverage
typechain
networks
Expand Down
3 changes: 3 additions & 0 deletions scripts/manageSnapshots.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ generate_snapshot() {

upload_snapshot() {
echo "Uploading snapshots..."
if [ ! -d "logs" ]; then
mkdir logs
fi
ipfs_logfile="logs/ipfs_$(date '+%Y-%m-%d').txt"
rm -f -- "$ipfs_logfile"
for file in ./snapshots/*.sqlite.gz; do
Expand Down

0 comments on commit 5814456

Please sign in to comment.