Increased LogMessage's default source padding
This commit is contained in:
@@ -14,10 +14,10 @@ namespace Discord.Commands
|
|||||||
else if (constructors.Length > 1)
|
else if (constructors.Length > 1)
|
||||||
throw new InvalidOperationException($"Multiple constructors found for \"{typeInfo.FullName}\"");
|
throw new InvalidOperationException($"Multiple constructors found for \"{typeInfo.FullName}\"");
|
||||||
|
|
||||||
var constructor = constructors[0];
|
var constructor = constructors[0];
|
||||||
|
|
||||||
ParameterInfo[] parameters = constructor.GetParameters();
|
ParameterInfo[] parameters = constructor.GetParameters();
|
||||||
object[] args = new object[parameters.Length];
|
object[] args = new object[parameters.Length];
|
||||||
|
|
||||||
for (int i = 0; i < parameters.Length; i++)
|
for (int i = 0; i < parameters.Length; i++)
|
||||||
{
|
{
|
||||||
var parameter = parameters[i];
|
var parameter = parameters[i];
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ namespace Discord
|
|||||||
}
|
}
|
||||||
|
|
||||||
public override string ToString() => ToString(null);
|
public override string ToString() => ToString(null);
|
||||||
public string ToString(StringBuilder builder = null, bool fullException = true, bool prependTimestamp = true, DateTimeKind timestampKind = DateTimeKind.Local, int? padSource = 7)
|
public string ToString(StringBuilder builder = null, bool fullException = true, bool prependTimestamp = true, DateTimeKind timestampKind = DateTimeKind.Local, int? padSource = 9)
|
||||||
{
|
{
|
||||||
string sourceName = Source;
|
string sourceName = Source;
|
||||||
string message = Message;
|
string message = Message;
|
||||||
|
|||||||
Reference in New Issue
Block a user