X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=octopi%2Flibrary%2Fcromp%2Fcromp_transaction.cpp;h=8345c154a89ac159ddc7c438377805d59b9f8ed0;hb=f1e81455b3b10bbf8ffa5cb2c7827997c5fc686e;hp=c8b582bab826928c8e13153265cbe4b63b020437;hpb=2952ccf47b80174880141a7ecfa122089f349b8d;p=feisty_meow.git diff --git a/octopi/library/cromp/cromp_transaction.cpp b/octopi/library/cromp/cromp_transaction.cpp index c8b582ba..8345c154 100644 --- a/octopi/library/cromp/cromp_transaction.cpp +++ b/octopi/library/cromp/cromp_transaction.cpp @@ -14,8 +14,11 @@ #include "cromp_transaction.h" +#include #include +#include #include +#include #include #include #include @@ -33,7 +36,7 @@ using namespace textual; namespace cromp { -//#define DEBUG_CROMP_TRANSACTION +#define DEBUG_CROMP_TRANSACTION // uncomment for noisy version. const int MAXIMUM_TRANSACTION = 100 * MEGABYTE; @@ -45,7 +48,7 @@ const int MAXIMUM_TRANSACTION = 100 * MEGABYTE; // since the transaction stuff is so low-level, we risk a feedback loop if // we log stuff when the program wide logger is itself a communication // object. - #define LOG(s) CLASS_EMERGENCY_LOG(file_logger(portable::env_string("TMP") + "/cromp_transaction.log"), s) + #define LOG(s) CLASS_EMERGENCY_LOG(file_logger(environment::TMP() + "/cromp_transaction.log"), s) #else #define LOG(s) #endif