Browse files

Changed logfile name

If `name` is empty, we don't use `name` in logfile name
  • Loading branch information...
1 parent 7dde210 commit 705bb503ecf4aac1bffab16b59b5f4f1402c9382 @rimms rimms committed Nov 22, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/framework/server_util.cpp
View
4 src/framework/server_util.cpp
@@ -142,7 +142,9 @@ namespace jubatus { namespace framework {
for(int severity = 0; severity < google::NUM_SEVERITIES; severity++) {
std::string log = logdir + '/';
log += basename.str() + '.';
- log += name + '.';
+ if (!name.empty()) {
+ log += name + '.';
+ }
log += google::GetLogSeverityName(severity);
log += ".log.";
std::string link = basename.str() + '.';

1 comment on commit 705bb50

@suma
Jubatus member

👍

Please sign in to comment.