projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Try to wrap ffprobe paths in quotes (may fix #168).
[dcpomatic.git]
/
src
/
lib
/
log.cc
diff --git
a/src/lib/log.cc
b/src/lib/log.cc
index 06cff04956b8b1a28fde9ff31c493def5a5930f7..ef36a902cbbc76027982bc8a054630ca1e693d38 100644
(file)
--- a/
src/lib/log.cc
+++ b/
src/lib/log.cc
@@
-25,10
+25,12
@@
#include <time.h>
#include "log.h"
#include <time.h>
#include "log.h"
+#include "i18n.h"
+
using namespace std;
Log::Log ()
using namespace std;
Log::Log ()
- : _level (
VERBOSE
)
+ : _level (
STANDARD
)
{
}
{
}
@@
-48,7
+50,7
@@
Log::log (string m, Level l)
string a = ctime (&t);
stringstream s;
string a = ctime (&t);
stringstream s;
- s << a.substr (0, a.length() - 1) <<
": "
<< m;
+ s << a.substr (0, a.length() - 1) <<
N_(": ")
<< m;
do_log (s.str ());
}
do_log (s.str ());
}
@@
-65,7
+67,7
@@
Log::microsecond_log (string m, Level l)
gettimeofday (&tv, 0);
stringstream s;
gettimeofday (&tv, 0);
stringstream s;
- s << tv.tv_sec <<
":" << tv.tv_usec << " "
<< m;
+ s << tv.tv_sec <<
N_(":") << tv.tv_usec << N_(" ")
<< m;
do_log (s.str ());
}
do_log (s.str ());
}
@@
-79,10
+81,10
@@
Log::set_level (Level l)
void
Log::set_level (string l)
{
void
Log::set_level (string l)
{
- if (l ==
"verbose"
) {
+ if (l ==
N_("verbose")
) {
set_level (VERBOSE);
return;
set_level (VERBOSE);
return;
- } else if (l ==
"timing"
) {
+ } else if (l ==
N_("timing")
) {
set_level (TIMING);
return;
}
set_level (TIMING);
return;
}
@@
-101,6
+103,6
@@
void
FileLog::do_log (string m)
{
ofstream f (_file.c_str(), fstream::app);
FileLog::do_log (string m)
{
ofstream f (_file.c_str(), fstream::app);
- f << m <<
"\n"
;
+ f << m <<
N_("\n")
;
}
}