Skip to content

Commit

Permalink
Release 1.0.3rc4
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon-Becker committed May 30, 2022
1 parent f6a2974 commit 35b02e2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion eth_heimdall.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: eth-heimdall
Version: 1.0.3rc3
Version: 1.0.3rc4
Summary: Heimdall is an advanced and modular smart-contract toolkit which aims to make dealing with smart contracts on EVM based chains easier.
Home-page: https://github.com/Jon-Becker/heimdall
Author: Jonathan Becker (jon-becker)
Expand Down
2 changes: 1 addition & 1 deletion heimdall/env/conf.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"build": {
"version": "1.0.3rc3"
"version": "1.0.3rc4"
},
"autoupdate": false,
"defaults": {
Expand Down
14 changes: 8 additions & 6 deletions heimdall/lib/utils/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@

# purge old log files
def purgeOldLogfiles():
files = os.listdir(f'{pathlib.Path(__file__).parent.parent.parent.resolve()}/logs')
files.remove('__init__.py')
for file in files:
if int(file.split('-')[1].replace('.log', '')) < int(datetime.datetime.now().strftime("%Y%m%d%H%M%S")) - 100000:
os.remove(f'{pathlib.Path(__file__).parent.parent.parent.resolve()}/logs/{file}')
# if timestamp is over 1 day old
try:
files = os.listdir(f'{pathlib.Path(__file__).parent.parent.parent.resolve()}/logs')
files.remove('__init__.py')
for file in files:
if int(file.split('-')[1].replace('.log', '')) < int(datetime.datetime.now().strftime("%Y%m%d%H%M%S")) - 100000:
os.remove(f'{pathlib.Path(__file__).parent.parent.parent.resolve()}/logs/{file}')
# if timestamp is over 1 day old
except: pass

# log to file, removing color codes
def logStripColor(file, type, log):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from setuptools import setup

setup(name='eth_heimdall',
version='1.0.3rc3',
version='1.0.3rc4',
description='Heimdall is an advanced and modular smart-contract toolkit which aims to make dealing with smart contracts on EVM based chains easier.',
url='https://github.com/Jon-Becker/heimdall',
entry_points={'console_scripts': ['heimdall=heimdall.__main__:main']},
Expand Down

0 comments on commit 35b02e2

Please sign in to comment.