File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,15 @@ bool BuildInfoPlugin::ReviewLinkOutput(
22
22
auto timestamps = build_info[" timestamps" ];
23
23
compiler->EnumerateResources ([&](an<ConfigResource> resource) {
24
24
if (!resource->loaded ) {
25
- LOG (WARNING) << " resource '" << resource->resource_id << " ' not loaded." ;
25
+ LOG (INFO) << " resource '" << resource->resource_id << " ' not loaded." ;
26
+ timestamps[resource->resource_id ] = 0 ;
26
27
return ;
27
28
}
28
29
auto file_name = resource->data ->file_name ();
29
30
if (file_name.empty ()) {
31
+ LOG (WARNING) << " resource '" << resource->resource_id
32
+ << " ' is not persisted." ;
33
+ timestamps[resource->resource_id ] = 0 ;
30
34
return ;
31
35
}
32
36
// TODO: store as 64-bit number to avoid the year 2038 problem
Original file line number Diff line number Diff line change @@ -385,14 +385,14 @@ static bool ConfigNeedsUpdate(Config* config) {
385
385
for (auto entry : *timestamps.AsMap ()) {
386
386
fs::path source_file_path = resolver->ResolvePath (entry.first );
387
387
if (!fs::exists (source_file_path)) {
388
- LOG (INFO) << " source file not exists: " << source_file_path.string ();
388
+ LOG (INFO) << " source file no longer exists: " << source_file_path.string ();
389
389
return true ;
390
390
}
391
391
auto value = As<ConfigValue>(entry.second );
392
392
int recorded_time = 0 ;
393
393
if (!value || !value->GetInt (&recorded_time) ||
394
394
recorded_time != (int ) fs::last_write_time (source_file_path)) {
395
- LOG (INFO) << " timestamp mismatch : " << source_file_path.string ();
395
+ LOG (INFO) << " source file changed : " << source_file_path.string ();
396
396
return true ;
397
397
}
398
398
}
You can’t perform that action at this time.
0 commit comments