Skip to content

Commit f83add2

Browse files
authored
Merge pull request #1044 from luotao1/log
refine print information
2 parents d52ebb0 + ace405b commit f83add2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

paddle/utils/ThreadLocal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ unsigned int* ThreadLocalRand::getSeed() {
3737
p = new unsigned int(defaultSeed_ - 1);
3838
} else {
3939
p = new unsigned int(defaultSeed_ + getTID());
40-
LOG(INFO) << "thread use undeterministic rand seed:" << *p;
40+
VLOG(3) << "thread use undeterministic rand seed:" << *p;
4141
}
4242
seed_.set(p);
4343
}

paddle/utils/Util.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ void registerInitFunction(std::function<void()> func, int priority) {
125125

126126
void runInitFunctions() {
127127
std::call_once(g_onceFlag, []() {
128-
LOG(INFO) << "Calling runInitFunctions";
128+
VLOG(3) << "Calling runInitFunctions";
129129
if (g_initFuncs) {
130130
std::sort(g_initFuncs->begin(),
131131
g_initFuncs->end(),
@@ -139,7 +139,7 @@ void runInitFunctions() {
139139
g_initFuncs = nullptr;
140140
}
141141
g_initialized = true;
142-
LOG(INFO) << "Call runInitFunctions done.";
142+
VLOG(3) << "Call runInitFunctions done.";
143143
});
144144
}
145145

@@ -231,7 +231,7 @@ std::string join(const std::string& part1, const std::string& part2) {
231231
} // namespace path
232232

233233
void copyFileToPath(const std::string& file, const std::string& dir) {
234-
LOG(INFO) << "copy " << file << " to " << dir;
234+
VLOG(3) << "copy " << file << " to " << dir;
235235
std::string fileName = path::basename(file);
236236
std::string dst = path::join(dir, fileName);
237237
std::ifstream source(file, std::ios_base::binary);

0 commit comments

Comments
 (0)