rename event name instead of service

This commit is contained in:
Willem Melching
2020-03-20 16:11:27 -07:00
parent f468ad3298
commit c818f1df37
3 changed files with 6 additions and 6 deletions
+1 -1
Submodule cereal updated: df82a53c16...b0c746b1e1
+4 -4
View File
@@ -32,7 +32,7 @@ if __name__ == "__main__":
parser.add_argument("socket", type=str, nargs='*', help="socket name")
args = parser.parse_args()
sm = messaging.SubMaster(['logMessage', 'androidLogEntry'], addr=args.addr)
sm = messaging.SubMaster(['logMessage', 'androidLog'], addr=args.addr)
min_level = LEVELS[args.level]
@@ -48,8 +48,8 @@ if __name__ == "__main__":
except json.decoder.JSONDecodeError:
print(f"[{t / 1e9:.6f}] decode error: {sm['logMessage']}")
if sm.updated['androidLogEntry']:
t = sm.logMonoTime['androidLogEntry']
m = sm['androidLogEntry']
if sm.updated['androidLog']:
t = sm.logMonoTime['androidLog']
m = sm['androidLog']
source = ANDROID_LOG_SOURCE[m.id]
print(f"[{t / 1e9:.6f}] {source} {m.pid} {m.tag} - {m.message}")
+1 -1
View File
@@ -29,7 +29,7 @@ int main() {
assert(kernel_logger);
Context * c = Context::create();
PubSocket * androidLog = PubSocket::create(c, "androidLogEntry");
PubSocket * androidLog = PubSocket::create(c, "androidLog");
assert(androidLog != NULL);
while (1) {