mirror of
https://github.com/archlinux-jerry/buildbot
synced 2024-11-22 13:00:40 +08:00
client: forgot debug
This commit is contained in:
parent
e3fa77ca6a
commit
b96164fe93
1 changed files with 6 additions and 3 deletions
|
@ -45,7 +45,10 @@ if __name__ == '__main__':
|
||||||
import argparse
|
import argparse
|
||||||
from utils import configure_logger
|
from utils import configure_logger
|
||||||
configure_logger(logger)
|
configure_logger(logger)
|
||||||
def print_log():
|
def print_log(debug=False):
|
||||||
|
if debug:
|
||||||
|
os.system(f'tail -n 43 -f \"buildbot.log\"')
|
||||||
|
else:
|
||||||
os.system(f'tail -n 43 -f \"{CONSOLE_LOGFILE}\"')
|
os.system(f'tail -n 43 -f \"{CONSOLE_LOGFILE}\"')
|
||||||
try:
|
try:
|
||||||
actions = {
|
actions = {
|
||||||
|
@ -113,7 +116,7 @@ if __name__ == '__main__':
|
||||||
logger.info(run('force_upload', args=(p,), kwargs={'overwrite': args.overwrite}, server=server))
|
logger.info(run('force_upload', args=(p,), kwargs={'overwrite': args.overwrite}, server=server))
|
||||||
elif action[0] == 'log':
|
elif action[0] == 'log':
|
||||||
logger.info('printing logs')
|
logger.info('printing logs')
|
||||||
print_log()
|
print_log(debug=args.debug)
|
||||||
else:
|
else:
|
||||||
parser.error("Please choose an action")
|
parser.error("Please choose an action")
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
Loading…
Reference in a new issue