Skip to content

Commit 8d37a91

Browse files
committed
Always log git sha
1 parent 1b00208 commit 8d37a91

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Image Processor/Image Processor/Module1.vb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,14 @@ Module Module1
1717
WriteTo().Console(restrictedToMinimumLevel:=Events.LogEventLevel.Information).
1818
CreateLogger()
1919

20-
20+
Log.Information("Code version:{hash}", ThisAssembly.Git.Sha)
2121

2222
Dim pth As String
2323
If args.Length = 0 Then
2424
pth = My.Application.Info.DirectoryPath
2525
Else
2626
pth = args(0)
2727
End If
28-
Log.Information("Code version:{hash}", ThisAssembly.Git.Sha)
2928
If pth.Replace("/", "").Replace("-", "").Trim = "?" Then
3029
Usage()
3130
Environment.Exit(0)
@@ -36,6 +35,7 @@ Module Module1
3635
Environment.Exit(0)
3736
End If
3837
End If
38+
3939
Log.Information("Folder to search {pth}", pth)
4040
Dim extensions As String() = ".bmp;.fit;.fits;.tif;.tiff;.jpg;.jpeg;.png;.pbm;.pgm;.pnm;.ppm;.gif".Split(";".ToCharArray) 'adjust to add any other file extensions that can be processed
4141
Dim files = Directory.GetFiles(pth).

0 commit comments

Comments
 (0)