Skip to content

Commit 0af7ace

Browse files
committed
Corrected format for logs.
1 parent bc2b940 commit 0af7ace

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

PolyDeploy/WebAPI/APIAuthentication.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public override void OnActionExecuting(HttpActionContext actionContext)
5757
{
5858
EventLogController elc = new EventLogController();
5959

60-
string log = string.Format("(APIKey: {1}) {2}", apiKey, message);
60+
string log = string.Format("(APIKey: {0}) {1}", apiKey, message);
6161

6262
elc.AddLog("PolyDeploy", log, EventLogController.EventLogType.HOST_ALERT);
6363

PolyDeploy/WebAPI/InWhitelist.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public override void OnActionExecuting(HttpActionContext actionContext)
4747
{
4848
EventLogController elc = new EventLogController();
4949

50-
string log = string.Format("(IP: {1}) {2}", clientIpAddress, message);
50+
string log = string.Format("(IP: {0}) {1}", clientIpAddress, message);
5151

5252
elc.AddLog("PolyDeploy", log, EventLogController.EventLogType.HOST_ALERT);
5353

0 commit comments

Comments
 (0)