Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Commit

Permalink
enhance debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
scorpp committed Jan 10, 2014
1 parent b7ffdb8 commit e32e0a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions vk-api.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ typedef struct {
VkAuthData *
vk_auth_data_parse (const gchar *auth_data_str) {
if (auth_data_str == NULL || strlen (auth_data_str) == 0) {
trace ("VK auth data missing");
trace ("VK auth data missing\n");
return NULL ;
}
VkAuthData *vk_auth_data = NULL;
GError *error;
JsonParser *parser = json_parser_new ();

if (!json_parser_load_from_data (parser, auth_data_str, strlen (auth_data_str), &error)) {
trace ("VK auth data invalid");
trace ("VK auth data invalid\n");
g_free (error);
g_object_unref (parser);
return NULL;
Expand Down
4 changes: 3 additions & 1 deletion vkontakte.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ static gboolean
vk_action_gtk (void *data) {
if (vk_auth_data == NULL) {
// not authenticated, show warning and that's it
trace ("VK - not authenticated\n")
gdk_threads_enter ();
show_message (GTK_MESSAGE_WARNING,
"To be able to use VKontakte plugin you need to provide your\n"
Expand All @@ -368,6 +369,7 @@ vk_action_gtk (void *data) {
}

gtk_widget_show (vk_create_browser_dialogue ());
trace("Widget shown\n");
return FALSE;
}

Expand Down Expand Up @@ -449,7 +451,7 @@ static int
vk_ddb_connect () {
vfs_curl_plugin = (DB_vfs_t *) deadbeef->plug_get_for_id ("vfs_curl");
if (!vfs_curl_plugin) {
trace ("cURL VFS plugin required");
trace ("cURL VFS plugin required\n");
return -1;
}

Expand Down

0 comments on commit e32e0a0

Please sign in to comment.