Commit 5800b895 authored by Maarten de Waard's avatar Maarten de Waard 🤘🏻
Browse files

fix some logging calls

parent 44699f91
......@@ -121,7 +121,7 @@ int main(int argc, char ** argv)
// Give request handlers that have called for the stop a chance to
// send their response to the client.
sleep(1);
y_close_logs();
ulfius_stop_framework(&instance);
......@@ -130,7 +130,7 @@ int main(int argc, char ** argv)
// Check if the encryption/init handler said that we should reboot.
if (reboot)
{
y_log_message(Y_LOG_LEVEL_ERROR, "rebooting...");
y_log_message(Y_LOG_LEVEL_INFO, "rebooting...");
reboot_initrd();
}
......
......@@ -141,7 +141,7 @@ static int encryption_lock(const char * device_name)
return r;
}
y_log_message(Y_LOG_LEVEL_ERROR, "Device %s is now deactivated.", device_name);
y_log_message(Y_LOG_LEVEL_DEBUG, "Device %s is now deactivated.", device_name);
crypt_free(cd);
return 0;
}
......@@ -166,7 +166,7 @@ static int create_encrypted_device(const char * path, const char * password)
return r;
}
y_log_message(Y_LOG_LEVEL_ERROR, "Context is attached to block device %s.",
y_log_message(Y_LOG_LEVEL_DEBUG, "Context is attached to block device %s.",
crypt_get_device_name(cd));
params.hash = "sha1";
......@@ -191,7 +191,7 @@ static int create_encrypted_device(const char * path, const char * password)
crypt_free(cd);
return r;
}
y_log_message(Y_LOG_LEVEL_ERROR, "The first keyslot is initialized.");
y_log_message(Y_LOG_LEVEL_DEBUG, "The first keyslot is initialized.");
crypt_free(cd);
return 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment