mirror of
https://github.com/monero-project/monero.git
synced 2026-07-30 23:50:24 -07:00
Merge pull request #4459
bcf3f6affuzz_tests: catch unhandled exceptions (moneromooo-monero)3ebd05d4miner: restore stream flags after changing them (moneromooo-monero)a093092elevin_protocol_handler_async: do not propagate exception through dtor (moneromooo-monero)1eebb82bnet_helper: do not propagate exceptions through dtor (moneromooo-monero)fb6a3630miner: do not propagate exceptions through dtor (moneromooo-monero)2e2139ffepee: do not propagate exception through dtor (moneromooo-monero)0749a8bddb_lmdb: do not propagate exceptions in dtor (moneromooo-monero)1b0afeebwallet_rpc_server: exit cleanly on unhandled exceptions (moneromooo-monero)418a9936unit_tests: catch unhandled exceptions (moneromooo-monero)ea7f9543threadpool: do not propagate exceptions through the dtor (moneromooo-monero)6e855422gen_multisig: nice exit on unhandled exception (moneromooo-monero)53df2debdb_lmdb: catch error in mdb_stat calls during migration (moneromooo-monero)e67016ddblockchain_blackball: catch failure to commit db transaction (moneromooo-monero)661439f4mlog: don't remove old logs if we failed to rename the current file (moneromooo-monero)5fdcda50easylogging++: test for NULL before dereference (moneromooo-monero)7ece1550performance_test: fix bad last argument calling add_arg (moneromooo-monero)a085da32unit_tests: add check for page size > 0 before dividing (moneromooo-monero)d8b1ec8bunit_tests: use std::shared_ptr to shut coverity up about leaks (moneromooo-monero)02563bf4simplewallet: top level exception catcher to print nicer messages (moneromooo-monero)c57a65b2blockchain_blackball: fix shift range for 32 bit archs (moneromooo-monero)
This commit is contained in:
@@ -137,7 +137,12 @@ void mlog_configure(const std::string &filename_base, bool console, const std::s
|
||||
el::Loggers::addFlag(el::LoggingFlag::StrictLogFileSizeCheck);
|
||||
el::Helpers::installPreRollOutCallback([filename_base, max_log_files](const char *name, size_t){
|
||||
std::string rname = generate_log_filename(filename_base.c_str());
|
||||
rename(name, rname.c_str());
|
||||
int ret = rename(name, rname.c_str());
|
||||
if (ret < 0)
|
||||
{
|
||||
// can't log a failure, but don't do the file removal below
|
||||
return;
|
||||
}
|
||||
if (max_log_files != 0)
|
||||
{
|
||||
std::vector<boost::filesystem::path> found_files;
|
||||
|
||||
Reference in New Issue
Block a user