Skip to content

Commit d2f1120

Browse files
committed
fix log arguments
1 parent 19291b9 commit d2f1120

File tree

1 file changed

+7
-4
lines changed
  • apps/updateserver/services/legacy

1 file changed

+7
-4
lines changed

apps/updateserver/services/legacy/S3.cfc

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@ component {
1414

1515
private function logger( string text, any exception, type="info" ){
1616
var log = arguments.text & chr(13) & chr(10) & callstackGet('string');
17-
if ( !isNull(arguments.exception ) )
18-
WriteLog( text=log, type=arguments.type, log=variables.providerLog, exception=arguments.exception );
19-
else
20-
WriteLog( text=log, type=arguments.type, log=variables.providerLog );
17+
if ( !isNull(arguments.exception ) ){
18+
WriteLog( text=arguments.text, type=arguments.type, log=variables.providerLog, exception=arguments.exception );
19+
systemOutput( arguments.exception, true, true );
20+
} else {
21+
WriteLog( text=arguments.text, type=arguments.type, log=variables.providerLog );
22+
systemOutput( arguments.text, true, true );
23+
}
2124
}
2225

2326
public function getVersions(boolean flush=false) {

0 commit comments

Comments
 (0)