projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixing extensions
[feisty_meow.git]
/
octopi
/
library
/
cromp
/
cromp_transaction.cpp
diff --git
a/octopi/library/cromp/cromp_transaction.cpp
b/octopi/library/cromp/cromp_transaction.cpp
index c8b582bab826928c8e13153265cbe4b63b020437..8345c154a89ac159ddc7c438377805d59b9f8ed0 100644
(file)
--- a/
octopi/library/cromp/cromp_transaction.cpp
+++ b/
octopi/library/cromp/cromp_transaction.cpp
@@
-14,8
+14,11
@@
#include "cromp_transaction.h"
#include "cromp_transaction.h"
+#include <basis/environment.h>
#include <basis/mutex.h>
#include <basis/mutex.h>
+#include <loggers/critical_events.h>
#include <loggers/file_logger.h>
#include <loggers/file_logger.h>
+#include <loggers/program_wide_logger.h>
#include <octopus/entity_defs.h>
#include <octopus/infoton.h>
#include <sockets/tcpip_stack.h>
#include <octopus/entity_defs.h>
#include <octopus/infoton.h>
#include <sockets/tcpip_stack.h>
@@
-33,7
+36,7
@@
using namespace textual;
namespace cromp {
namespace cromp {
-
//
#define DEBUG_CROMP_TRANSACTION
+#define DEBUG_CROMP_TRANSACTION
// uncomment for noisy version.
const int MAXIMUM_TRANSACTION = 100 * MEGABYTE;
// 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.
// 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
#else
#define LOG(s)
#endif