Skip to content

Commit d7ccbc5

Browse files
committed
updating logger
1 parent 0e9292c commit d7ccbc5

6 files changed

Lines changed: 11 additions & 8 deletions

File tree

Dynaframe3.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>WinExe</OutputType>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net5.0</TargetFramework>
55
<AssemblyName>Dynaframe</AssemblyName>
66
<Version>2.19</Version>
77
<Authors>Joe Farro</Authors>
88
<Company>Geektoolkit</Company>
99
<Product>Dynaframe</Product>
1010
<Description>Dynaframe is a dynamic photo application which can show images and videos as slideshows. It features a web frontend, home automation integration, and more.</Description>
11-
<AssemblyVersion>2.1009.0.0</AssemblyVersion>
11+
<AssemblyVersion>2.19.0.0</AssemblyVersion>
1212
<Configurations>Release;Debug</Configurations>
1313
<FileVersion>2.19.0.0</FileVersion>
1414
</PropertyGroup>

Logger.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ public static string GetLogAsHTML()
4242
}
4343

4444
string returnVal = "";
45-
foreach (string str in memoryLog)
45+
for(int i = memoryLog.Count -1; i > 0; i--)
4646
{
47-
returnVal += str + "\r\n";
47+
returnVal += memoryLog[i] + "\r\n";
4848
}
4949
return returnVal;
5050
}

MainWindow.axaml.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,16 +630,17 @@ private void KillVideoPlayer()
630630
catch (Exception exc)
631631
{
632632
Debug.WriteLine("Tried and failed to kill video process..." + exc.ToString());
633-
Logger.LogComment("Tried and failed to kill video process. Excpetion: " + exc.ToString());
633+
Logger.LogComment("Tried and failed to kill video process. Exception: " + exc.ToString());
634634
}
635635
}
636636

637637
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
638638
{
639639
// OMXPlayer processes can be a bit tricky. to kill them we use
640640
// killall - 9 omxplayer.bin
641+
// -q quiets this down in case omxplayer isn't running
641642

642-
Helpers.RunProcess("killall", "-9 omxplayer.bin");
643+
Helpers.RunProcess("killall", "-q -9 omxplayer.bin");
643644
videoProcess = null;
644645

645646
}

PlayListEngine.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ public List<PlayListItem> GetPlayListItems()
119119
}
120120

121121
Logger.LogComment("New List generated! Contains: " + CurrentPlayListItems.Count + " items. Shuffle setting is: " + AppSettings.Default.Shuffle);
122+
122123
// extra logging for now
123124
Logger.LogComment("----------------------Begin Playlist Dump----------------");
124125
try

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ echo "Version is: $version"
1111
if [ -z "$1" ]
1212
then
1313
echo -e "${CYAN}No version passed in...using default${NC}"
14-
version="2.18"
14+
version="2.19"
1515
fi
1616

1717

web/Log.htm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<html>
22
<head>
3+
<!--meta http-equiv="refresh" content="10"-->
34
</head>
45
<body>
56
Debug log for version: <!--VERSIONSTRING--><br />
6-
<textarea cols="120" rows="80" style="overflow:auto;">
7+
<textarea cols="200" rows="160" style="overflow:auto;">
78
<!--LOG-->
89
</textarea>
910
</body>

0 commit comments

Comments
 (0)