Fix java example build (#1225)

This commit is contained in:
LionZXY 2020-10-03 22:01:29 +03:00 committed by GitHub
parent 7c7804ff9e
commit e104766de3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -305,7 +305,7 @@ public final class Example {
public static void main(String[] args) throws InterruptedException {
// disable TDLib log
Client.execute(new TdApi.SetLogVerbosityLevel(0));
if (Client.execute(new TdApi.SetLogStream(new TdApi.LogStreamFile("tdlib.log", 1 << 27))) instanceof TdApi.Error) {
if (Client.execute(new TdApi.SetLogStream(new TdApi.LogStreamFile("tdlib.log", 1 << 27, true))) instanceof TdApi.Error) {
throw new IOError(new IOException("Write access to the current directory is required"));
}