#include "config.h"
#include "tls.h"
-#include "ceph_ver.h"
-
-#define _STR(x) #x
-#define STRINGIFY(x) _STR(x)
-
void common_init(std::vector<const char*>& args, bool open)
{
tls_init();
// open log file?
if (open)
_dout_open_log();
-
- generic_dout(0) << "ceph version " << VERSION << " (" << STRINGIFY(CEPH_GIT_VER) << ")" << dendl;
}
#include "Mutex.h"
#include "Clock.h"
+#include "ceph_ver.h"
+
#include <fstream>
#include <iostream>
using namespace std;
+#define _STR(x) #x
+#define STRINGIFY(x) _STR(x)
+
// debug output
Mutex _dout_lock("_dout_lock", false, false /* no lockdep */);
ostream *_dout = &std::cout;
_dout = out;
*_dout << g_clock.now() << " --- opened log " << _dout_path << " ---" << std::endl;
}
+ *_dout << "ceph version " << VERSION << " (" << STRINGIFY(CEPH_GIT_VER) << ")" << std::endl;
}
int _dout_rename_output_file() // after calling daemon()