Skip to content

Commit f917254

Browse files
committed
rm log
1 parent bc58489 commit f917254

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

examples/usage.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
proxypool_url = 'http://127.0.0.1:5555/random'
5-
target_url = 'http://httpbin.org/get'
5+
target_url = 'https://antispider5.scrape.center/'
66

77

88
def get_random_proxy():

proxypool/setting.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,6 @@
7676
ENABLE_GETTER = env.bool('ENABLE_GETTER', True)
7777
ENABLE_SERVER = env.bool('ENABLE_SERVER', True)
7878

79-
logger.add(env.str('LOG_RUNTIME_FILE', join(LOG_DIR, 'runtime.log')), level='DEBUG', rotation='1 week', retention='20 days')
80-
logger.add(env.str('LOG_ERROR_FILE', join(LOG_DIR, 'error.log')), level='ERROR', rotation='1 week')
79+
# logger.add(env.str('LOG_RUNTIME_FILE', join(LOG_DIR, 'runtime.log')), level='DEBUG', rotation='1 week', retention='20 days')
80+
# logger.add(env.str('LOG_ERROR_FILE', join(LOG_DIR, 'error.log')), level='ERROR', rotation='1 week')
8181

supervisord.conf

+13-1
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,25 @@ nodaemon=true
55
process_name=tester
66
command=python3 run.py --processor tester
77
directory=/app
8+
stdout_logfile=/dev/stdout
9+
stdout_logfile_maxbytes=0
10+
stderr_logfile=/dev/stderr
11+
stderr_logfile_maxbytes=0
812

913
[program:getter]
1014
process_name=getter
1115
command=python3 run.py --processor getter
1216
directory=/app
17+
stdout_logfile=/dev/stdout
18+
stdout_logfile_maxbytes=0
19+
stderr_logfile=/dev/stderr
20+
stderr_logfile_maxbytes=0
1321

1422
[program:server]
1523
process_name=server
1624
command=python3 run.py --processor server
17-
directory=/app
25+
directory=/app
26+
stdout_logfile=/dev/stdout
27+
stdout_logfile_maxbytes=0
28+
stderr_logfile=/dev/stderr
29+
stderr_logfile_maxbytes=0

0 commit comments

Comments
 (0)