summaryrefslogtreecommitdiff
path: root/src/Debug.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2023-06-14 20:35:58 +0200
committerJörg Frings-Fürst <debian@jff.email>2023-06-14 20:35:58 +0200
commitd443a3c2509889533ca812c163056bace396b586 (patch)
treee94ffc0d9c054ca4efb8fb327e18dfac88e15dc7 /src/Debug.vala
parentbb9797c14470641b082ebf635e2ae3cfd5f27a3b (diff)
New upstream version 0.32.1upstream/0.32.1
Diffstat (limited to 'src/Debug.vala')
-rw-r--r--src/Debug.vala5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Debug.vala b/src/Debug.vala
index f159b0d..799a94f 100644
--- a/src/Debug.vala
+++ b/src/Debug.vala
@@ -33,7 +33,7 @@ namespace Debug {
string log_file_error_msg = null;
- // logging to disk is currently off for viewer more; see http://trac.yorba.org/ticket/2078
+ // logging to disk is currently off for viewer more; see https://bugzilla.gnome.org/show_bug.cgi?id=716474
File? log_file = (log_app_version_prefix == LIBRARY_PREFIX) ? AppDirs.get_log_file() : null;
if(log_file != null) {
File log_dir = log_file.get_parent();
@@ -104,11 +104,10 @@ namespace Debug {
}
private void log(FileStream stream, string prefix, string message) {
- time_t now = time_t();
stream.printf("%s %d %s [%s] %s\n",
log_app_version_prefix,
Posix.getpid(),
- Time.local(now).to_string(),
+ new DateTime.now_local().format("%F %T"),
prefix,
message
);