#include "lib/null_log.h"
#include "lib/version.h"
#include "lib/encode_server.h"
+#include "lib/dcpomatic_log.h"
#include <boost/array.hpp>
#include <boost/asio.hpp>
#include <boost/algorithm/string.hpp>
using std::cerr;
using std::string;
using std::cout;
-using boost::shared_ptr;
+using std::shared_ptr;
static void
help (string n)
}
}
- shared_ptr<Log> log;
if (write_log) {
- log.reset (new FileLog ("dcpomatic_server_cli.log"));
- } else {
- log.reset (new NullLog);
+ dcpomatic_log.reset (new FileLog("dcpomatic_server_cli.log"));
}
- EncodeServer server (log, verbose, num_threads);
+ EncodeServer server (verbose, num_threads);
try {
server.run ();