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