Replay logging almost done. Only thing missing is stdout.
This commit is contained in:
@@ -474,10 +474,10 @@ public:
|
||||
drv::ReplayPlayer player;
|
||||
player.open_logfile(fn);
|
||||
while (true) {
|
||||
drv::ReplayPlayer::Error err = player.step();
|
||||
if (err != drv::ReplayPlayer::ERR_NONE) {
|
||||
player.print_error(std::cerr);
|
||||
return (err != drv::ReplayPlayer::ERR_LOGFILE_EOF) ? 1 : 0;
|
||||
drv::ReplayPlayer::Status st = player.step();
|
||||
if (st != drv::ReplayPlayer::ST_REPLAYING) {
|
||||
player.print_status(std::cerr);
|
||||
return (st == drv::ReplayPlayer::ST_CLEAN_EXIT) ? 0 : 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -567,6 +567,9 @@ public:
|
||||
SSL_CTX_free(ssl_ctx_with_root_certs_);
|
||||
SSL_CTX_free(ssl_ctx_with_server_certs_);
|
||||
DrivenEngine::set(nullptr);
|
||||
|
||||
recorder_.clean_exit();
|
||||
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user