-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SRQ-15639 : Fixed issue with publish mappings and includes
- Loading branch information
Showing
10 changed files
with
113 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using System; | ||
using System.IO; | ||
using Tridion.ContentManager.Templating; | ||
|
||
namespace Sdl.Web.Tridion | ||
{ | ||
public class InternalLogger | ||
{ | ||
private readonly TemplatingLogger _log; | ||
private readonly string _logFile = null; | ||
|
||
public InternalLogger(TemplatingLogger log) | ||
{ | ||
_log = log; | ||
try | ||
{ | ||
_logFile = Environment.GetEnvironmentVariable("DXA_LOGGING"); | ||
} | ||
catch | ||
{ | ||
// invalid so ignore | ||
} | ||
} | ||
|
||
public void Debug(string msg) | ||
{ | ||
try | ||
{ | ||
_log?.Debug(msg); | ||
if (string.IsNullOrEmpty(_logFile)) return; | ||
using (var sw = File.AppendText(_logFile)) | ||
{ | ||
sw.WriteLine(msg); | ||
} | ||
} | ||
catch | ||
{ | ||
// ignore | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+3.5 KB
(100%)
cms/content/sites9/all-publications/Binaries/2-70-2048.tbbasm
Binary file not shown.
Binary file modified
BIN
+3.5 KB
(100%)
cms/content/sites9/all-publications/Binaries/2-80-2048.tbbasm
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.