HarryWei / cloudxy

Automatically exported from code.google.com/p/cloudxy
6 stars 3 forks source link

日志输出问题 #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
当我们第一次启动hlfs时,这时虽然snapshot.txt和alive_snapshot.txt�
��存在,但是这时正常情况,但是我们的日志会打印出 ERROR, 
这可能会大大降低我们日志的可信度。具体日志如下:

....
20120131 16:01:40.811 DEBUG    hlfslog- 
[/home/jiawei/workshop15/cloudxy1/branches/snapshot/src/backend/local_storage.c]
[local_file_is_exist][110]full path 
/home/jiawei/workshop15/cloudxy1/branches/snapshot/src/snapshot/unittest/build/t
estfs/snapshot.txt
20120131 16:01:40.811 ERROR    hlfslog- 
[/home/jiawei/workshop15/cloudxy1/branches/snapshot/src/utils/storage_helper.c][
file_get_contents][552]file is not exist
20120131 16:01:40.811 DEBUG    hlfslog- 
[/home/jiawei/workshop15/cloudxy1/branches/snapshot/src/backend/local_storage.c]
[local_file_close][95]local -- enter func local_file_close
20120131 16:01:40.811 DEBUG    hlfslog- 
[/home/jiawei/workshop15/cloudxy1/branches/snapshot/src/backend/local_storage.c]
[local_file_close][99]local -- leave func local_file_close
20120131 16:01:40.811 DEBUG    hlfslog- 
[/home/jiawei/workshop15/cloudxy1/branches/snapshot/src/utils/storage_helper.c][
file_get_contents][590]leave func file_get_contents
20120131 16:01:40.811 ERROR    hlfslog- 
[/home/jiawei/workshop15/cloudxy1/branches/snapshot/src/snapshot/snapshot_helper
.c][load_all_snapshot][144]can not read snapshot content!
20120131 16:01:40.811 ERROR    hlfslog- 
[/home/jiawei/workshop15/cloudxy1/branches/snapshot/src/snapshot/snapshot_helper
.c][load_snapshot_by_name][249]load all ss error

.....

Original issue reported on code.google.com by harryxi...@gmail.com on 31 Jan 2012 at 4:20