Skip to content

Commit dd0c098

Browse files
committed
add more info log
1 parent dc4e5b3 commit dd0c098

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/agent/container/container.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ int Container::ConstructVolumGroup() {
287287
boost::split(v, volum_vs[i], boost::is_any_of(":"));
288288

289289
if (v.size() != 4) {
290-
LOG(WARNING) << "spilt size is " << v.size() << ", expect 4";
290+
LOG(WARNING) << "spilt size is " << v.size() << ", expect 4, vs " << volum_vs[i];
291291
continue;
292292
}
293293

@@ -335,8 +335,10 @@ int Container::ConstructProcess() {
335335
pid_t pid = process_->Clone(boost::bind(&Container::RunRoutine, this, _1), NULL, 0);
336336

337337
if (pid <= 0) {
338-
LOG(INFO) << "fail in clonning appwork process for container " << id_.CompactId();
338+
LOG(INFO) << "fail in cloning appwork process for container " << id_.CompactId();
339339
return -1;
340+
} else {
341+
LOG(INFO) << "success in cloning appworker process, pid " << pid;
340342
}
341343

342344
return 0;

src/agent/container/container_manager.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,8 @@ int ContainerManager::Reload() {
431431
LOG(WARNING) << "allocat failed for container " << id.CompactId()
432432
<< " reason is:" << ec.Message();
433433
return -1;
434+
} else {
435+
LOG(WARNING) << "allocate success for container " << id.CompactId();
434436
}
435437

436438
boost::shared_ptr<IContainer> container = IContainer::NewContainer(id, metas[i]->container());

0 commit comments

Comments
 (0)