Merge pull request #1000 from ConsenSys/fix/log-format

Fix jsonv2 log format
pull/1002/head
Nikhil Parasaram 6 years ago committed by GitHub
commit 8254bf1f5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      mythril/analysis/report.py
  2. 2
      mythril/interfaces/cli.py

@ -185,7 +185,7 @@ class Report:
return {}
logs = [] # type: List[Dict]
for exception in self.exceptions:
logs += [{"level": "error", "hidden": "true", "error": exception}]
logs += [{"level": "error", "hidden": "true", "msg": exception}]
return {"logs": logs}
def as_swc_standard_format(self):

@ -47,7 +47,7 @@ def exit_with_error(format_, message):
"sourceFormat": "",
"sourceList": [],
"meta": {
"logs": [{"level": "error", "hidden": "true", "error": message}]
"logs": [{"level": "error", "hidden": "true", "msg": message}]
},
}
]

Loading…
Cancel
Save