Skip to content

Commit

Permalink
New real-time messages now log to info rather than debug log level
Browse files Browse the repository at this point in the history
  • Loading branch information
ccowell93 committed Aug 17, 2022
1 parent cce6c2f commit b3aedf6
Show file tree
Hide file tree
Showing 7 changed files with 2,028 additions and 4 deletions.
2 changes: 1 addition & 1 deletion PluginSalesforce/API/Utility/Listener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public void OnMessage(IClientSessionChannel channel, IMessage message)
{
var convertedJson = message.Json;
_messages.Add(convertedJson);
Logger.Debug($"Got message: {convertedJson}");
Logger.Info($"Got message: {convertedJson}");
}

public void ClearStoredMessages()
Expand Down
879 changes: 879 additions & 0 deletions PluginSalesforceTest/Logs/resharpertestrunner64-log20220817.txt

Large diffs are not rendered by default.

902 changes: 902 additions & 0 deletions PluginSalesforceTest/Logs/resharpertestrunner64-log20220817_001.txt

Large diffs are not rendered by default.

241 changes: 241 additions & 0 deletions PluginSalesforceTest/Logs/resharpertestrunner64-log20220817_002.txt

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
8 changes: 5 additions & 3 deletions PluginSalesforceTest/Plugin/PluginIntegrationTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,8 @@ public async Task ReadStreamRealTimeTest()
LogLevel = LogLevel.Debug
};

var schema = GetTestSchema(null, @"Lead", @"Lead");
var schema = GetTestSchema(null, @"Contact", @"Contact");
// var schema = GetTestSchema(null, @"Lead", @"Lead");
// var schema = GetTestSchema(null, @"LeadUpdates", @"LeadUpdates", "Select Id, Name FROM Lead");
// var schema = GetTestSchema(null, @"/topic/LeadUpdates", @"/topic/LeadUpdates", "Select Id, Name FROM Lead");

Expand All @@ -354,7 +355,8 @@ public async Task ReadStreamRealTimeTest()

var realTimeSettings = new RealTimeSettings
{
ChannelName = "LeadsAll",
ChannelName = "Contacts_IdName",
// ChannelName = "LeadsAll",
BatchWindowSeconds = 5
};

Expand All @@ -380,7 +382,7 @@ public async Task ReadStreamRealTimeTest()
request.Schema = schemasResponse.Schemas[0];

var cancellationToken = new CancellationTokenSource();
cancellationToken.CancelAfter(10000);
cancellationToken.CancelAfter(10000*10000);
var response = client.ReadStream(request, null, null, cancellationToken.Token);
var responseStream = response.ResponseStream;

Expand Down

0 comments on commit b3aedf6

Please sign in to comment.