Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Commit

Permalink
Added --log-file
Browse files Browse the repository at this point in the history
  • Loading branch information
admin-slush committed Jan 21, 2014
1 parent edc8f13 commit e191748
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mining_proxy.py
Expand Up @@ -44,6 +44,7 @@ def parse_args():
parser.add_argument('-v', '--verbose', dest='verbose', action='store_true', help='Enable low-level debugging messages')
parser.add_argument('-q', '--quiet', dest='quiet', action='store_true', help='Make output more quiet')
parser.add_argument('-i', '--pid-file', dest='pid_file', type=str, help='Store process pid to the file')
parser.add_argument('-l', '--log-file', dest='log_file', type=str, help='Log to specified file')
parser.add_argument('-st', '--scrypt-target', dest='scrypt_target', action='store_true', help='Calculate targets for scrypt algorithm')
return parser.parse_args()

Expand All @@ -60,6 +61,8 @@ def parse_args():
elif args.verbose:
settings.DEBUG = True
settings.LOGLEVEL = 'DEBUG'
if args.log_file:
settings.LOGFILE = args.log_file

from twisted.internet import reactor, defer
from stratum.socket_transport import SocketTransportFactory, SocketTransportClientFactory
Expand Down

0 comments on commit e191748

Please sign in to comment.