You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
305 B
Python
16 lines
305 B
Python
7 years ago
|
#!/usr/bin/env python3.6
|
||
|
# coding=utf-8
|
||
|
import json
|
||
|
|
||
|
from qutescript import qutescript
|
||
|
|
||
|
|
||
|
@qutescript
|
||
|
def dump_to_log(request):
|
||
|
with open('qutescript.debug.log', 'a') as logfile:
|
||
|
line = json.dumps(request.dump())
|
||
|
logfile.writelines([line])
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
dump_to_log()
|