WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.7% of users enabled 2FA.

Commit 330efb76 authored by Zixian Cai's avatar Zixian Cai
Browse files

Add debug infos

parent 6254c8dc
......@@ -10,8 +10,13 @@ logger = logging.getLogger(__name__)
@click.argument('file', type=click.Path(exists=True))
@click.option('--compare', is_flag=True, default=False)
def local(file, compare):
logger.info("Constructing LocalProject. File: {}".format(file))
p = LocalProject(file=file)
logger.info("Constructing a fake Revision")
revision = Revision(p)
logger.info("Running tasks specified in file")
logger.info("Generating report, compare?: {}".format(compare))
report = revision.generate_report(compare=compare)
logger.info("Printing report")
......@@ -93,5 +93,7 @@ class Task:
return Result(
[float(r) for r in result_file.read().splitlines()])
logger.warning("Result {} doesn't exist")
"Result file {} doesn't exist, skipped".format(
return None
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment