File tree 1 file changed +6
-0
lines changed
BlazorDiffusion.ServiceInterface
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ public async Task<object> Any(MigrateOldArtifacts request)
52
52
if ( string . IsNullOrEmpty ( newFilePath ) )
53
53
{
54
54
to . Failed . Add ( filePath ) ;
55
+ log . LogError ( "Failed migrating artifact {Id} {FilePath}: Missing Path" ,
56
+ artifact . Id , filePath ) ;
55
57
}
56
58
else
57
59
{
@@ -67,12 +69,16 @@ public async Task<object> Any(MigrateOldArtifacts request)
67
69
FilePathMedium = filePathMedium ,
68
70
FilePathLarge = newFilePath ,
69
71
} , where : a => a . Id == artifact . Id ) ;
72
+ to . Results . Add ( newFilePath ) ;
73
+ log . LogInformation ( $ "Migrated { artifact . Id } to { newFilePath } ") ;
70
74
}
71
75
}
72
76
}
73
77
else
74
78
{
75
79
to . Failed . Add ( artifact . FilePath ) ;
80
+ log . LogError ( "Failed migrating artifact {Id} {FilePath}: {Json}" ,
81
+ artifact . Id , filePath , api . Error . ToJson ( ) ) ;
76
82
}
77
83
}
78
84
catch ( Exception e )
You can’t perform that action at this time.
0 commit comments