Skip to content

Commit 05b6297

Browse files
committed
Add toString overrides for some ServerCode classes
1 parent da90986 commit 05b6297

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

src/com/backendless/servercode/ExecutionResult.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,13 @@ public void setException( ExceptionWrapper exception )
5555
{
5656
this.exception = exception;
5757
}
58+
59+
@Override
60+
public String toString()
61+
{
62+
return "ExecutionResult{" +
63+
"exception=" + exception +
64+
", result=" + result +
65+
'}';
66+
}
5867
}

src/com/backendless/servercode/RunnerContext.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,18 @@ public void setPrematureResult( Object prematureResult )
9191
{
9292
this.prematureResult = prematureResult;
9393
}
94+
95+
@Override
96+
public String toString()
97+
{
98+
return "RunnerContext{" +
99+
"appId='" + appId + '\'' +
100+
", userId='" + userId + '\'' +
101+
", userToken='" + userToken + '\'' +
102+
", userRole=" + userRole +
103+
", deviceType=" + deviceType +
104+
", missingProperties=" + missingProperties +
105+
", prematureResult=" + prematureResult +
106+
'}';
107+
}
94108
}

src/com/backendless/servercode/logging/Logger.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,13 @@ static String dumpStack( Throwable t )
135135
pw.close();
136136
return sw.toString();
137137
}
138+
139+
@Override
140+
public String toString()
141+
{
142+
return "Logger{" +
143+
"async=" + async +
144+
", clazz=" + clazz +
145+
'}';
146+
}
138147
}

0 commit comments

Comments
 (0)