diff options
Diffstat (limited to 'contrib/epee/include/storages')
-rw-r--r-- | contrib/epee/include/storages/levin_abstract_invoke2.h | 7 | ||||
-rw-r--r-- | contrib/epee/include/storages/portable_storage_from_json.h | 4 |
2 files changed, 7 insertions, 4 deletions
diff --git a/contrib/epee/include/storages/levin_abstract_invoke2.h b/contrib/epee/include/storages/levin_abstract_invoke2.h index 8c4fb9ccd..14e7d402a 100644 --- a/contrib/epee/include/storages/levin_abstract_invoke2.h +++ b/contrib/epee/include/storages/levin_abstract_invoke2.h @@ -30,6 +30,9 @@ #include <boost/utility/value_init.hpp> #include "net/levin_base.h" +#undef MONERO_DEFAULT_LOG_CATEGORY +#define MONERO_DEFAULT_LOG_CATEGORY "net" + namespace epee { namespace net_utils @@ -48,7 +51,7 @@ namespace epee int res = transport.invoke(command, buff_to_send, buff_to_recv); if( res <=0 ) { - LOG_PRINT_RED("Failed to invoke command " << command << " return code " << res, LOG_LEVEL_1); + MERROR("Failed to invoke command " << command << " return code " << res); return false; } serialization::portable_storage stg_ret; @@ -154,7 +157,7 @@ namespace epee int res = transport.notify(command, buff_to_send, conn_id); if(res <=0 ) { - LOG_PRINT_RED_L0("Failed to notify command " << command << " return code " << res); + MERROR("Failed to notify command " << command << " return code " << res); return false; } return true; diff --git a/contrib/epee/include/storages/portable_storage_from_json.h b/contrib/epee/include/storages/portable_storage_from_json.h index 41f270627..04b57376c 100644 --- a/contrib/epee/include/storages/portable_storage_from_json.h +++ b/contrib/epee/include/storages/portable_storage_from_json.h @@ -365,12 +365,12 @@ namespace epee } catch(const std::exception& ex) { - LOG_PRINT_RED_L0("Failed to parse json, what: " << ex.what()); + MERROR("Failed to parse json, what: " << ex.what()); return false; } catch(...) { - LOG_PRINT_RED_L0("Failed to parse json"); + MERROR("Failed to parse json"); return false; } } |