mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Better log.
This commit is contained in:
parent
2d2ede3656
commit
c414840ffa
2 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ public class Http {
|
||||||
.post(CountingFileRequestBody(file.file(), file.mimeType(), progressCallback))
|
.post(CountingFileRequestBody(file.file(), file.mimeType(), progressCallback))
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
log(1, "Uploading $file to $url")
|
log(2, "Uploading $file to $url")
|
||||||
val response = OkHttpClient().newCall(request).execute()
|
val response = OkHttpClient().newCall(request).execute()
|
||||||
if (! response.isSuccessful) {
|
if (! response.isSuccessful) {
|
||||||
error(response)
|
error(response)
|
||||||
|
|
|
@ -61,7 +61,7 @@ public class GithubApi @Inject constructor(val executors: KobaltExecutors,
|
||||||
}
|
}
|
||||||
.toBlocking()
|
.toBlocking()
|
||||||
.forEach { action ->
|
.forEach { action ->
|
||||||
log(1, "\nRelease successfully uploaded ${zipFile.name}")
|
log(1, "\n${zipFile.name} successfully uploaded")
|
||||||
}
|
}
|
||||||
} catch(e: RetrofitError) {
|
} catch(e: RetrofitError) {
|
||||||
val error = parseRetrofitError(e)
|
val error = parseRetrofitError(e)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue